I have been trying to do an upload with a file as http posting and the network.request and the network.upload and have had no success. I was going to try using the asyncHTTP method below. Does anyone know how to upload a file using this method? Where do I assign the file name and path with it?
Thanks
http://developer.coronalabs.com/code/cross-platform-asynchronous-http-request
require "asyncHttp" print("-------------------------------------------------------") local url = "http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=Corona+SDK" --The interface is similar to corona's network.request local myRequest = asyncHttp.request(url, "GET", function(event) if event.isError then print("Network error") else print("response:") print(event.response) end end) print("async") --To cancel an outstanding request, you can use myRequest:cancel() --It's that simple