http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Upload Files using POST Requests

Open LeoBorai opened this issue 3 years ago • 0 comments

Description

Implement capability to upload files, using HTTP POST requests. A POST along with a file attached to the request body should create such file in the provided path.

Why is this useful?

Improve HTTP Server capabilities by enabling the user to create new files in the specific

How should this work?

curl -i -X POST host:port/:root-dir-relative-path \
    -H "Content-Type: text/xml" \
    --data-binary "@path/to/file"

LeoBorai avatar Jun 04 '21 01:06 LeoBorai