Skip to content

[TASK] Upload Asset Option #33367

Closed

Description

@zJaaal

Description

We need to be able to add files using the SO.

To achieve we need to make use of a hidden input that will be activated by the user when clicking on the Asset option on the dropdown

Technical constrain

After getting the file, we need to use the Temp API that is exposed from this Service

That service will give you a tempId, that will help you make a publish on the current folder in order to finally upload the file to dotCMS.

To complete the uploading you need to use the following endpoint:

PUT /api/v1/workflow/actions/default/fire/PUBLISH

Using the following body

{
    "contentlet": {
        "baseType": "dotAsset",
        "asset": "<temp-id-from-temp-api>",
        "hostFolder": "<folder-id-of-selected-node>",
        "indexPolicy": "WAIT_FOR"
    }
}

We should provide info of the process to the user all the time using the messages:

  1. Uploading file
  2. Publishing file
  3. File published

Acceptance Criteria

  • User should not be lost on how the process is progressing
  • User should be able to find the new asset as fast as possible

Priority

High

Activity

  1. added theissue type on Sep 24, 2025
  2. changed the title [-][TASK][/-] [+][TASK] Upload Asset[/+] on Sep 24, 2025
  3. changed the title [-][TASK] Upload Asset[/-] [+][TASK] Upload Asset Option[/+] on Sep 24, 2025
  4. moved this from New to Current Sprint Backlog in dotCMS - Product Planningon Sep 24, 2025
  5. fmontes commented on Sep 29, 2025

    @fmontes
    Member

    That input should make use of the accept attribute to filter files using the fileMasks of the selected folder. See #33349

    If your doing this think:

    1. Does the value of the field in the folder is valid? Does the endpoint to create folder validate this? How is the validation
    2. Do we have good error messages for this?
  6. moved this from Current Sprint Backlog to In Progress in dotCMS - Product Planningon Sep 29, 2025
  7. moved this from Done to QA in dotCMS - Product Planningon Oct 2, 2025
  8. reopened this on Oct 2, 2025
  9. zJaaal commented on Oct 2, 2025

    @zJaaal
    MemberAuthor

    Let's wait for this one to QA both since it's the same workflow

  10. dario-daza commented on Oct 7, 2025

    @dario-daza
    Member

    QA Passed

    Now we are able to upload assets in Content Drive, through the button option Add New > Asset

    QA-upload-asset-option.mov
  11. removed their assignment
    on Oct 7, 2025
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