Skip to content

Add/Edit File form has no folder field #405

Closed

Description

@caseysoftware

modules/files/addedit.php reads ?folder= (L7) and builds $folders = getFolderSelectList() (L92), but style/_common/files/addedit.php never renders a file_folder field. As a result:

  • "Add new file to this folder" opens the form with folder=N, but the file is saved to Root.
  • An existing file can't be moved to another folder from its edit form.

Files only land in a folder when file_folder is posted by hand.

Fix: render a folder select on the form, defaulting to ?folder= for new files and to file_folder when editing.

Blocks #394.

Fix before Phase 1 of the Pluggable File Backend proposal (#404).

Activity

  1. added 2 commits that reference this issue on Oct 21, 2026
    d43260d
    001c3b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions