0

I wanted to make a request using curl POST, that should create file in my site.

curl -ks -u admin:admin -XPOST https://host.docker.internal:9200/.... 
-H "Tus-Resumable: 1.0.0" 
-H "Upload-Length: 100" 
-H "Content-Type: application/offset+octet-stream" 
-H "Upload-Metadata: filename dGVzdC50eHQ=" 
-H "Tus-Extension: creation-with-upload" 
-d "upload content"

Documentation of tus says -H "Tus-Extension: creation-with-upload" should create file in site but create file is not visible in my site.

Response

upload completely sent off: 14 out of 14 bytes
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [130 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 201 Created
< Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: Tus-Resumable, Location
< Content-Length: 0
< Content-Security-Policy: default-src 'none';
< Date: Tue, 13 Dec 2022 06:18:26 GMT
< Location: https://host.docker/data/{randompattern}
< Tus-Extension: creation,creation-with-upload,checksum,expiration
< Tus-Resumable: 1.0.0
< Upload-Expires: 1670998706
< Upload-Offset: 14
< X-Content-Type-Options: nosniff
< X-Download-Options: noopen
< X-Frame-Options: SAMEORIGIN
< X-Permitted-Cross-Domain-Policies: none
< X-Robots-Tag: none
< X-Xss-Protection: 1; mode=block

Currently, no file is created on my site even response is 201 CreatedI expect to create file in my site which i can access through UI?

Amrita
  • 1
  • 1

0 Answers0