Quantcast
Channel: Active questions tagged filereader - Stack Overflow
Viewing all articles
Browse latest Browse all 104

How to get the equivalent data format of curl -T --upload-data option from using JavaScript in browser?

$
0
0

curl has -T, --upload-file option to "transfer the specified local file to the remote URL".

curl -v "http://some/data/consumer" -XPOST -T "some/file/name"

How can I get the equivalent data of a file using curl -T, from <input type="file" /> using JavaScript?


Viewing all articles
Browse latest Browse all 104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>