File Picker in New Edit Content: Add Upload New File Button and Global Search
User Story
The file picker in the old edit content was recently redesigned to improve its usability, the new edit content file picker should follow its pattern but most importantly should also support the same functionality as it did before. At the moment, the File Picker in New Edit Content Lacks the Upload New File Button thus blocking users from being able to upload a new file. Additionally, the search bar only searches within the selected site/folder instead of being a global search across all accessible content. See video below: https://dotcms.slack.com/files/U07LKSBNM4K/F09C3DHK90D/screen_recording_2025-08-26_at_12.44.10___pm.mov
Acceptance Criteria
Feature 1 — Upload New File Button
- [ ] An "Upload New File" button is visible in the File Picker UI
- [ ] The button is only enabled when the user has upload permissions for the currently selected site/folder; users without upload permissions cannot interact with the button
- [ ] Clicking the button opens the file upload flow (file chooser or drag-and-drop)
- [ ] The uploaded file is saved to the currently selected site/folder shown in the left-hand tree panel
- [ ] After a successful upload, the newly uploaded file appears in the file list and is selectable
- [ ] If the upload fails (e.g. unsupported file type, size limit, permission denied at save time), an appropriate error message is shown and no partial file is left behind
- [ ] If no site/folder is selected, the button is disabled.
Feature 2 — Global Search (check video attached below)
- [ ] The search bar performs a global search across all sites and folders the user has access to, not limited to the currently selected site/folder
- [ ] Search results respect the user's content permissions — files in sites/folders the user cannot read are excluded from results
Proposed Objective
User Experience
Proposed Priority
Priority 1 - Show Stopper
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
#feat-edit-content
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
https://github.com/user-attachments/assets/2a01be04-cd18-463e-8058-9c587fab1f83
The acceptance criteria for this issue have changed. We will handle Global Search in a separate ticket. Also, please ensure the upload button uses the same endpoint/service as Content Drive.
PRs linked to this issue
- feat(dot-browser-selector): add Upload New File button to File Picker in New Edit Content by @adrianjm-dotCMS
PRs linked to this issue
- feat(dot-browser-selector): add Upload New File button to File Picker in New Edit Content by @adrianjm-dotCMS
- feat(dot-browser-selector): auto-select uploaded file and enable Add button by @adrianjm-dotCMS
QA approved!
https://github.com/user-attachments/assets/7369f8e5-4513-4ce1-8106-291e7b2acf85