Add curl-friendly file upload via PUT #66
No reviewers
Labels
No labels
nagonag
nagonag/ignore
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
IUS/once!66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/43-curl-upload"
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?
Support uploading files with curl without needing multipart forms:
Returns
201 Createdwith the download URL as plain text.Changes
PUTwith raw body; filename resolved from?name=query param,Content-Dispositionheader, or URL path (curl -T appends the filename)POSTmultipart: detect non-browser clients (Accept: */*withouttext/html) and return plain-text URLs instead of HTMLfileas alternate multipart field name (besides legacy.file) forcurl -FcompatibilitywantsPlainText()andhandlePutUpload()Fixes #43