Repository navigation
Description
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.
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.
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
sortOrderandshowOnMenu. - 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
- [TASK] Content Drive: Folder schema — add defaultBaseType field #35577 — backend folder schema work (adds
defaultBaseTypeto the folder model and endpoints). In review: PR feat(folders): add nullable defaultBaseType upload-mode preference (#35577) #36649.
Priority
Medium
Additional Context
Parent: #35575 (upload Asset/File menu — merged PR #36243)
Epic: #35436
Companion (backend): #35577 (PR #36649)
Frontend anchors:
- Upload menu:
DotContentDriveDialogUploadSelectorComponent—libs/portlets/dot-content-drive/portlet/src/lib/components/dialogs/dot-content-drive-dialog-upload-selector/ - Folder settings dialog:
DotContentDriveDialogFolderComponent—.../dialogs/dot-content-drive-dialog-folder/(tabs today: GENERAL=0, ADVANCED=1) - Fields to move live on the ADVANCED tab (
allowedFileExtensions,defaultFileAssetType). defaultBaseTypeis new on the frontend — arrives with [TASK] Content Drive: Folder schema — add defaultBaseType field #35577 / feat(folders): add nullable defaultBaseType upload-mode preference (#35577) #36649.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(content-drive): prompt Asset vs File on upload (dotCMS#35575) (d…
[-][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)[/+][-][TASK] Content Drive: Folder upload behavior — defaultBaseType (remember preference + Upload Behavior tab)[/-][+][TASK] Content Drive: Folder Upload Behavior tab — defaultBaseType preference + consolidate upload settings[/+]github-actions commentedon Jul 24, 2026
PRs linked to this issue
8 remaining items
ihoffmann-dot commentedon Aug 11, 2026
FE fixes for the QA failure are up in #37011 (Upload Behavior tab:
Default File Asset Typedropdown clipped inside the dialog, andAllowed File Extensionsreverting to the previously saved value).dario-daza commentedon Aug 13, 2026
✅ QA PASSED
QA-content-drive-folder-upload.mp4
feat(content-drive): ease the folder dialog between tabs instead of s…