Content
View differences
Updated by Eric Schubert over 3 years ago
**As** a user
**I want to** receive help when an upload of a file to Nextcloud was rejected if the file is too big
**so that** I know how to circumvent the problem, by manually uploading the file to Nextcloud (using its chunked upload) and linking it to the work package afterwards.
**Acceptance criteria**
* When I update a file that is larger than what the post can handle but that is still valid in terms of maximum file size and quota then I should receive a meaningful error message:
"The selected file is too big for uploading it here in OpenProject. For files that big we recommend uploading them directly in Nextcloud first. Then you can link them to this work package."
## Additional information on how to fail on upload
### Nextcloud quota
* create a user
* set quota in the user administration
### file access control
* install file access control app
* create a limiting flow in "Administration -> Flow"
### files antivirus
* install and configure the file-antivirus app and background antivirus software
* upload "eicar" virus file [https://www.eicar.org/download-anti-malware-testfile/](https://www.eicar.org/download-anti-malware-testfile/)
### POST size & upload size to the same value
set `PHP_UPLOAD_LIMIT` env variable of the nextcloud service in the `docker-compose.override.yml`
**I want to** receive help when an upload of a file to Nextcloud was rejected if the file is too big
**so that** I know how to circumvent the problem, by manually uploading the file to Nextcloud (using its chunked upload) and linking it to the work package afterwards.
**Acceptance criteria**
* When I update a file that is larger than what the post can handle but that is still valid in terms of maximum file size and quota then I should receive a meaningful error message:
## Additional information on how to fail on upload
### Nextcloud quota
* create a user
* set quota in the user administration
### file access control
* install file access control app
* create a limiting flow in "Administration -> Flow"
### files antivirus
* install and configure the file-antivirus app and background antivirus software
* upload "eicar" virus file [https://www.eicar.org/download-anti-malware-testfile/](https://www.eicar.org/download-anti-malware-testfile/)
### POST size & upload size to the same value
set `PHP_UPLOAD_LIMIT` env variable of the nextcloud service in the `docker-compose.override.yml`