Skip to content

[EPIC] Content Drive: Upload #35436

Closed
6 of 6 issues completed
Closed

Description

@fmontes

Overview

Folder-level upload preferences that control whether uploads create dotAssets ("Assets") or FileAssets ("Files"). The upload button label communicates the folder's effective type — no separate indicator needed. Includes drag-and-drop, MIME-type routing for Assets mode, preference inheritance, and duplicate file handling.


Problem

Content Drive is folder-and-file oriented, but uploads currently create dotAssets by default, which breaks the mental model for customers using FileAssets (~75% of existing customers). There is no compelling product reason to force one type over the other.


Design Principle

The UI never surfaces "dotAsset" or "FileAsset." Only "Assets" and "Files."


Folder States & Upload Behavior

Folder state Button label Drag-and-drop File creation
Explicit or inherited "Assets" Upload Assets Direct Routed by MIME type
Explicit or inherited "Files" Upload Files Direct All created as FileAssets
No preference (default) Upload Triggers choice dialog Depends on user choice

No preference state: Drag-and-drop triggers a choice dialog. If user has edit permission, a "Remember my preference" checkbox is shown.


Preference Inheritance

Child folders inherit parent's preference unless explicitly overridden. Inherited folders behave identically to explicitly set folders.


Duplicate File Handling

Replace, Keep both (appends suffix), or Cancel — following macOS / Google Drive pattern.


Out of Scope (v1)

  • Site-level or user-level upload preferences
  • Predictable URL support for dotAssets
  • Deprecating FileAssets

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. added theissue type on Apr 24, 2026
  2. removed theissue type on Apr 24, 2026
  3. added theissue type on Apr 24, 2026
  4. moved this from New to Next Sprint in dotCMS - Product Planningon May 5, 2026
  5. reopened this on Aug 24, 2026
  6. changed the title [-]Content Drive: Upload (EPICID-194)[/-] [+][EPIC] Content Drive: Upload[/+] on Oct 7, 2026
  7. github-actions commented on Nov 23, 2026

    @github-actions
    Contributor

    Documentation Assessment — Epic #35436: Content Drive: Upload

    action: update
    urlTitle: file-configuration

    Determination

    This Epic delivers end-user-relevant, documentable behavior: a folder-level Asset/File upload choice, a per-folder "Upload Behavior" setting, MIME-type routing, and — via the final sub-issue (#37166) — true multi-file bulk upload with background progress and per-file outcome reporting. All of this already has public documentation, and the documentation is current with what shipped.

    A semantic search of the docs turned up Creating and Uploading in Content Drive (content-drive-create-and-upload, last modified 2026-10-30 — after every PR in this Epic merged) and Bulk Actions in Content Drive (content-drive-bulk-actions, same modification date). Comparing them against the Epic and its sub-issues:

    One gap remains. PR #37358 (bulk upload backend) introduces three new, admin-tunable configuration properties governing the size of a bulk upload batch:

    Property Default Behavior
    CONTENT_BULK_UPLOAD_MAX_FILES 100 Maximum files per batch; over this, the whole batch is refused at submission.
    CONTENT_BULK_UPLOAD_MAX_TOTAL_BYTES 1 GB Maximum combined size per batch; enforced both as a fast pre-check and authoritatively while content is read.
    CONTENT_BULK_UPLOAD_FALLBACK_MAX_FILE_BYTES 200 MB Per-file size ceiling used only when the file's own content type has no binary-field size limit configured; a file over this fails on its own without aborting the rest of the batch.

    These are exactly the kind of property an administrator tuning upload behavior for their instance would need, and the existing File Configuration page (file-configuration) is the established, single home for this class of property — it already documents the per-content-type binary field size/type limits that these three properties sit alongside and interact with (a batch-level ceiling vs. the per-content-type ceiling the fallback property backs off to). None of the three appear anywhere in the current docs corpus (confirmed via searches for the property names, for "bulk file upload progress," and for general upload size/count limits).

    Everything else introduced by this Epic — the UI behavior, the upload menu, the Upload Behavior tab, and the general shape of bulk upload and its progress/outcome reporting — is already adequately covered in the existing Content Drive pages and needs no change.

    Differential

    Add one new section to file-configuration (urlTitle: file-configuration), between the existing File Type Limits section and Limiting Metadata Indexing, documenting the three bulk-upload properties and how the per-batch and per-file ceilings relate to each other. No other page requires a change for this Epic.

    Documentation Draft

    File Configuration

    You may configure dotCMS to limit both the size and types of files uploaded.

    File Size Limits {#FileSize}

    There is no global property to limit the maximum size of all files uploaded. However every Content Type with a Binary field (including all File Asset and dotAsset Content Types) can be configured to limit the maximum file size allowed for the Content Type. For more information, please see the Binary Field documentation.

    File Type Limits {#FileType}

    There is no global property to limit the types of files which can be uploaded. However every Content Type with a Binary field (including all File Asset and dotAsset Content Types) can be configured to limit the types of files allowed for the Content Type, based on the MIME type of the uploaded file. For more information, please see the Binary Field documentation.

    Content Drive Bulk Upload Limits {#BulkUploadLimits}

    When you select or drop several files at once in Content Drive, the whole selection is uploaded together as one batch. In addition to the per-Content-Type size and type limits described above, three properties bound the batch as a whole:

    Property Default Description
    CONTENT_BULK_UPLOAD_MAX_FILES 100 Maximum number of files allowed in a single bulk upload batch. A batch with more files than this is refused in full before any upload begins.
    CONTENT_BULK_UPLOAD_MAX_TOTAL_BYTES 1073741824 (1 GB) Maximum combined size of all files in a single bulk upload batch. A batch over this limit is refused.
    CONTENT_BULK_UPLOAD_FALLBACK_MAX_FILE_BYTES 209715200 (200 MB) Maximum size for an individual file in a bulk upload batch, used only when that file's own Content Type has no Binary field size limit configured.

    If a batch exceeds the file-count or total-size limit, the entire batch is refused and nothing is uploaded, so you can resubmit with fewer or smaller files. If a single file within an otherwise valid batch exceeds its Content Type's own size limit (or the fallback limit above, when its Content Type sets none), only that file fails — the rest of the batch continues and is still uploaded.

    Limiting Metadata Indexing {#Metadata}

    When files are uploaded into dotCMS, the file metadata is always included. However only the metadata fields you explicitly choose to index are indexed, and thus searchable within dotCMS. Which metadata fields are indexed is controlled by the INDEX_METADATA_FIELDS property in the dotmarketing-config.properties file.

    For more information on metadata indexing, please see the How Content is Mapped to Elasticsearch documentation.

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