Sorry guys, for putting out another post on uploading files to a web server, but you’ll see why I felt I had to.
I’m just trying to upload a file to my webserver, which currently expects multipart form data. I’ve seen some people mention a lua library to help with that, and I’ve seen some links to some code examples, but…
In almost every case, the link is broken.
This is mainly because Corona’s old code repository was shut down, but Google doesn’t know that.
Example result:
How To - Upload an Image to a server (multipart/form-data)
https://developer. corona labs.com/category/tags/http
Generates multipart form-data suitable for use with Corona SDK’s network.request(…) function. Updated 2011-10-29: Added some server side example code.
https://developer.coronalabs.com/category/tags/http
“Hey, that sounds like exactly what I need!”
However, if you go to that link, it takes you to the new code repository site, and that sample doesn’t exist there. It’s happened to me so many times today, it’s just ridiculous.
Thanks,
Dave