jmp909
March 26, 2011, 6:04pm
1
Hi,
I was wondering if anyone had any examples of posting a form with multipart data to a remote server?
Some of the data might be binary attachments for example. I have managed to do this with smtp.message & smtp.send for email (bottom example here http://w3.impa.br/~diego/software/luasocket/old/luasocket-2.0-beta/smtp.html ), but not sure about how it would be achieved with a general POST request
thanks
J [import]uid: 6645 topic_id: 8315 reply_id: 308315[/import]
I’m after exactly the same thing. I wish to either take a photo and upload it via POST or select a photo from the iphone album and upload that in the same way. Has anyone done this yet?
thanks [import]uid: 56934 topic_id: 8315 reply_id: 34830[/import]
Same here - I’d like to take a photo and be able to share it on facebook.
The sample code only lets you share a *link* to a picture - not actually upload a picture. [import]uid: 13784 topic_id: 8315 reply_id: 49038[/import]
There is a mime module mime = require(“mime”) that I used the base64 encode/decoder from. I don’t know what else it does.
But you should be able to do a standard post request just as if your submitting from a web browser.
[import]uid: 19626 topic_id: 8315 reply_id: 49041[/import]
For facebook, you need the oauth token ID and I am not sure how to get that out of the facebook api.
I’m very interested in doing this to Facebook, though. [import]uid: 13784 topic_id: 8315 reply_id: 49548[/import]
bpappin
October 21, 2011, 11:57pm
6
I need this as well.
Required to send binary data like images back to the server. [import]uid: 22381 topic_id: 8315 reply_id: 62808[/import]
bpappin
October 23, 2011, 12:34am
7