Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create new TUS upload resource using /webdav without remote.php - returns html instead #10346

Open
saw-jan opened this issue Oct 18, 2024 · 0 comments
Labels

Comments

@saw-jan
Copy link
Member

saw-jan commented Oct 18, 2024

Important

Found out that the url MUST end with / to work:
https://localhost:9200/webdav
✔️ https://localhost:9200/webdav/

Steps to reproduce

( ❌ ) Try to create a new tus upload resource:

curl -XPOST 'https://localhost:9200/webdav' -uadmin:admin -vk \
-H "Tus-Resumable: 1.0.0" \
-H "Upload-Length: 10" \
-H "Upload-Metadata: filename dHVzdGVzdC50eHQ="
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=utf-8

<!DOCTYPE html><html>...

( ✔️ ) Works fine when remote.php is used:

curl -XPOST 'https://localhost:9200/remote.php/webdav' -uadmin:admin -vk \
-H "Tus-Resumable: 1.0.0" \
-H "Upload-Length: 10" \
-H "Upload-Metadata: filename dHVzdGVzdC50eHQ="
< HTTP/1.1 201 Created
< Content-Type: text/html; charset=utf-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant