mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #404] Please allow creating files by POST method. Sometimes it is impossible to use the PUT method #215
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
POST http://192.168.1.10/file.txt HTTP/1.1
Content-Length: 5
Host: 192.168.1.10
Hello
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: ...
@sigoden commented on GitHub (Jun 19, 2024):
we will not support this feature. Because
POSTdoes not conform to the webdav specification,If it is impossible to use the PUT method, you should avoid use dufs api.