Skip to content

[TASK] Content Drive: Folder Upload Behavior tab — defaultBaseType preference + consolidate upload settings #35578

Description

@zJaaal

Description

Implements the folder upload-behavior UX from epic #35436: let users control whether a folder uploads as Assets or Files, and manage that preference — together with the other upload-related folder settings — from a dedicated Upload Behavior tab in the folder settings dialog. Backed by the defaultBaseType folder field from #35577.

Design change (supersedes the original prototype): the "remember this choice" checkbox is gone. Choosing the base type on upload is now a lightweight menu with no persistence; the only place a folder's upload preference is set/changed is the new Upload Behavior tab in folder settings.

1. Upload menu — no persistence, just a pointer to settings

When the user starts an upload on a folder with no preference (Upload button or OS drag-and-drop), the existing Asset / File selector menu (DotContentDriveDialogUploadSelectorComponent, shipped in #36243) stays a transient menu:

  • Asset (marked Recommended, default) and File options — unchanged.
  • No "Always upload to this folder as {Assets|Files}" checkbox. (This is the part that changed — the checkbox from the original prototype is dropped.)
  • Add a footer line: "Set your default upload type in the Folder Settings." — a pointer to where the preference is actually configured. (Final wording → copywriting.)

The menu does not call any PUT/persist the choice; it only decides the base type for the current upload.

Image

2. Folder settings — new "Upload Behavior" tab

Add an Upload Behavior tab to DotContentDriveDialogFolderComponent (used for both Create and Edit modes), positioned between GENERAL and ADVANCED. It consolidates all upload-related folder configuration:

a) Upload behavior — radio group (title + description per option, same visual design as the upload menu), bound to the new defaultBaseType folder field:

  • Ask each time — no preference (defaultBaseType = null). Uploads show the Asset/File menu.
  • Always use Assets — defaultBaseType = dotAsset. Content type routed automatically by file type.
  • Always use Files — defaultBaseType = fileAsset. Content type routed automatically by file type.

On Edit, pre-select from the folder's current defaultBaseType. Saving persists it via the folder POST/PUT endpoint.

b) Allowed file extensions — moved here from the ADVANCED tab (allowedFileExtensions form control → backend fileMasks). This was previously "TBD"; it is now confirmed to live in Upload Behavior.

c) Default file type — moved here from the ADVANCED tab (defaultFileAssetType form control → backend defaultAssetType). The p-select of FILEASSET content types.

After the move, the ADVANCED tab keeps only sortOrder and showOnMenu.

Image

Acceptance Criteria

  • Upload menu no longer has a "remember/always" checkbox; it stays a transient base-type selector.
  • Upload menu shows a footer pointer: "Set your default upload type in the Folder Settings." (final copy TBD).
  • Folder settings dialog has a new Upload Behavior tab, between GENERAL and ADVANCED, in both Create and Edit modes.
  • Upload Behavior tab has the Ask each time / Always use Assets / Always use Files radio bound to defaultBaseType.
  • On Edit, the radio is pre-selected from the folder's current defaultBaseType.
  • Allowed file extensions field is moved from ADVANCED to Upload Behavior (fileMasks).
  • Default file type field is moved from ADVANCED to Upload Behavior (defaultAssetType).
  • ADVANCED tab retains only sortOrder and showOnMenu.
  • Saving the dialog persists defaultBaseType (plus the moved fields) via the folder POST/PUT endpoint.

Out of Scope (tracked in epic #35436)

  • Preference inheritance across the folder hierarchy.
  • Dynamic Upload button label (Upload Assets / Upload Files / Upload).
  • MIME-type routing for Assets mode.
  • Duplicate file handling.

Depends On

Priority

Medium

Additional Context

Parent: #35575 (upload Asset/File menu — merged PR #36243)
Epic: #35436
Companion (backend): #35577 (PR #36649)

Frontend anchors:

Activity

  1. added theissue type on May 5, 2026
  2. changed the title [-][TASK] Content Drive: Persist default upload base type on folder (remember preference + edit folder fields)[/-] [+][TASK] Content Drive: Folder upload behavior — defaultBaseType (remember preference + Upload Behavior tab)[/+] on Jul 16, 2026
  3. changed the title [-][TASK] Content Drive: Folder upload behavior — defaultBaseType (remember preference + Upload Behavior tab)[/-] [+][TASK] Content Drive: Folder Upload Behavior tab — defaultBaseType preference + consolidate upload settings[/+] on Jul 24, 2026
  4. self-assigned this
    on Jul 27, 2026
  5. moved this from New to In Progress in dotCMS - Product Planningon Jul 27, 2026
  6. 8 remaining items

  7. ihoffmann-dot commented on Aug 11, 2026

    @ihoffmann-dot
    Member

    FE fixes for the QA failure are up in #37011 (Upload Behavior tab: Default File Asset Type dropdown clipped inside the dialog, and Allowed File Extensions reverting to the previously saved value).

  8. moved this from In Progress to In Review in dotCMS - Product Planningon Aug 11, 2026
  9. removed their assignment
    on Aug 12, 2026
  10. self-assigned this
    on Aug 13, 2026
  11. dario-daza commented on Aug 13, 2026

    @dario-daza
    Member

    ✅ QA PASSED

    QA-content-drive-folder-upload.mp4
  12. removed their assignment
    on Aug 13, 2026
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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions