Content
View differences
Updated by Marc Alcobé almost 4 years ago
**As** a user _\[enter role of user\]_
**I want to** upload a file from my device to Nextcloud and link it to a OpenProject work package _\[enter objective\]_
**so that** I can keep track of the files related to my work packages directly from OpenProject _\[enter desired result\]_
## **Acceptance criteria**
* The location picker specified in <mention class="mention" data-id="43655" data-type="work_package" data-text="#43655">#43655</mention> needs to be fully functional to be able to complete this flow. _\[enter acceptance criteria\]_
* The process of uploading a file should be the next:
1. The user clicks on the link "upload files" on the files tab:
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37174/content">
2. The system file picker opens and the user selects the file/s that ones to upload
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37175/content">
3. User needs to select in which folder of Nextcloud the file will be uploaded:
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37176/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37177/content">
4. Click on the "Choose location" button in the action bar.
5. A loading message appears on top of the screen as a tooltip (like in attachments). _(Needs to be checked depending on the time of response)_
6. A success message appears on top of the screen as a tooltip (like in attachments).
* In case the user clicks on the cancel or outside the modal (50% black area) all the selection is canceled and the modal its closed.
## **Figma**
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=2442%3A67371 _..._
**I want to** upload a file from my device to Nextcloud and link it to a OpenProject work package
**so that** I can keep track of the files related to my work packages directly from OpenProject
## **Acceptance criteria**
* The location picker specified in <mention class="mention" data-id="43655" data-type="work_package" data-text="#43655">#43655</mention> needs to be fully functional to be able to complete this flow.
* The process of uploading a file should be the next:
1. The user clicks on the link "upload files" on the files tab:
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37174/content">
2. The system file picker opens and the user selects the file/s that ones to upload
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37175/content">
3. User needs to select in which folder of Nextcloud the file will be uploaded:
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37176/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37177/content">
4. Click on the "Choose location" button in the action bar.
5. A loading message appears on top of the screen as a tooltip (like in attachments). _(Needs to be checked depending on the time of response)_
6. A success message appears on top of the screen as a tooltip (like in attachments).
* In case the user clicks on the cancel or outside the modal (50% black area) all the selection is canceled and the modal its closed.
## **Figma**
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=2442%3A67371