[GH-ISSUE #404] Please allow creating files by POST method. Sometimes it is impossible to use the PUT method #215

Closed
opened 2026-04-08 16:51:13 +03:00 by zhus · 1 comment
Owner

Originally created by @benziout on GitHub (Jun 18, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/404

Please allow creating files by POST method. Sometimes it is impossible to use the PUT method

             ## REQUEST

POST http://192.168.1.10/file.txt HTTP/1.1
Content-Length: 5
Host: 192.168.1.10

Hello

             ## ERROR RESPONSE

HTTP/1.1 405 Method Not Allowed
access-control-allow-origin: *
access-control-allow-credentials: true
access-control-allow-methods: *
access-control-allow-headers: Authorization,*
access-control-expose-headers: Authorization,*
content-length: 0
date: ...

Originally created by @benziout on GitHub (Jun 18, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/404 ## Please allow creating files by POST method. Sometimes it is impossible to use the PUT method ## REQUEST POST http://192.168.1.10/file.txt HTTP/1.1 Content-Length: 5 Host: 192.168.1.10 Hello ## ERROR RESPONSE HTTP/1.1 405 Method Not Allowed access-control-allow-origin: * access-control-allow-credentials: true access-control-allow-methods: * access-control-allow-headers: Authorization,* access-control-expose-headers: Authorization,* content-length: 0 date: ...
zhus closed this issue 2026-04-08 16:51:13 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 19, 2024):

we will not support this feature. Because POST does not conform to the webdav specification,

If it is impossible to use the PUT method, you should avoid use dufs api.

<!-- gh-comment-id:2177459712 --> @sigoden commented on GitHub (Jun 19, 2024): we will not support this feature. Because `POST` does not conform to the webdav specification, If it is impossible to use the PUT method, you should avoid use dufs api.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#215