pydio / pydio-core

Pydio 8 official repository
https://pydio.com
GNU Affero General Public License v3.0
867 stars 289 forks source link

Implement API to upload to write only workspace without credentials (anonymously) #1418

Open github20180319 opened 6 years ago

github20180319 commented 6 years ago

I have a workspace that is configured write only, anonymous writes allowed. I can upload via a browser without credentials. I can upload via the API using curl when I specify a user name and password.

However I cannot upload via the API using curl without specifying credentials.

This syntax works: curl --upload-file Logo.png --user "charles:secretpassword" --header "X-File-Name:Logo.png" https://files.pydio.com/api/v2/io/filedrop/ > /dev/null

This syntax does not work: curl --upload-file Logo.png --header "X-File-Name:Logo.png" https://files.pydio.com/api/v2/io/filedrop/ > /dev/null

So it appears I'm required to specify credentials even though the workspace allows for anonymous writes.