Content
View differences
Updated by Wieland Lindenthal over 3 years ago
### Steps to reproduce
1. create a file called `.htaccess`
2. get a direct upload token: ``` TOKEN=`curl TOKEN=\`curl -u admin:admin http://localhost/nextcloud-server/index.php/apps/integration_openproject/direct-upload-token http://localhost/nextcloud-server/index.php/apps/integration\_openproject/direct-upload-token -d '{"folder_id":2}' -H'Content-Type: application/json' '{"folder\_id":2}' -H'Content-Type: application/json' | jq .token -r`` ``` -r\`\`
3. use the token to upload the `.htaccess` .htaccess file `curl curl -XPOST 'http://localhost/nextcloud-server/index.php/apps/integration_openproject/direct-upload/'$TOKEN 'http://localhost/nextcloud-server/index.php/apps/integration\_openproject/direct-upload/'$TOKEN --form 'file=@"/tmp/.htaccess"' 'file=@"/tmp/.htaccess"' --form 'overwrite="true"' -H'Content-Type: multipart/form-data' -v` 'overwrite="true"' -H'Content-Type: multipart/form-data' -v
### What is the buggy behavior?
_Please describe the bug with as most details as possible. Example:_
* HTTP response code is 500
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. HTTP response code 403
1. create a file called `.htaccess`
2. get a direct upload token: ``` TOKEN=`curl
3. use the token to upload the `.htaccess`
### What is the buggy behavior?
_Please describe the bug with as most details as possible. Example:_
* HTTP response code is 500
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. HTTP response code 403