开发者

How can I upload a file from an iPad to a web server (upload servlet)

开发者 https://www.devze.com 2023-01-02 04:09 出处:网络
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'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

0

精彩评论

暂无评论...
验证码 换一张
取 消