### Description We need to be able to add files using the SO. To achieve we need to make use of a [hidden input](https://developer.mozilla.org/en-US/docs/Web/API/File_API/Using_files_from_web_applications#using_hidden_file_input_elements_using_the_click_method) 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](https://github.com/dotCMS/core/blob/a61a4c1cc2d471456e4d109bd05dd0ca2d5b685d/core-web/libs/data-access/src/lib/dot-upload/dot-upload.service.ts#L20) 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 ```json { "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
[-][TASK][/-][+][TASK] Upload Asset[/+][-][TASK] Upload Asset[/-][+][TASK] Upload Asset Option[/+]fmontes commentedon Sep 29, 2025
If your doing this think:
zJaaal commentedon Oct 2, 2025
Let's wait for this one to QA both since it's the same workflow
dario-daza commentedon Oct 7, 2025
QA Passed
Now we are able to upload assets in Content Drive, through the button option Add New > Asset
QA-upload-asset-option.mov