How can I upload a file from an iPad to a web server (upload servlet)
I'm writing an iPad application that mimics a flash website I built. The site uses Flash file uploader to upload files from the user's filesystem to my tomcat server.
I understand that an iPad application can sync files via iTunes to a Documents folder. Given access to those files, how ca开发者_JAVA百科n I invoke a file upload of a selected file to the web.
From what I find in tomcats docs, the file upload just works like a standard HTTP file upload as a POST request with a multipart/mixed body. RFC1867
To construct such a request you could use ASIHTTPRequest or see this question
精彩评论