luvit/luvit

Example for uploading a file

Closed this issue · 0 comments

I need to upload a file to a server using request client, so I created a new client using req = http.request(options, function(resp) ... end) and wrote x-www-form-urlencoded data using req:write(postData) and then called req:done(). How can I pipe a read stream to this request to upload a file to the server?