开发者

iPhone -- How to upload Email attachments to server

HI ALL,

I am making an application for iPhone in that I want to upload any document or any file that is coming from email as an attachment.

Like I am receiving a Untitled.doc and Untitled.xls files as attachment in Email. Receiving email email in my iPhone , now I want to upload the same to my server then is it possible with iPhone as I do come to know that we don't have permission to access the file system of iPhone,

If this thing is possible then how开发者_C百科 to perform can any one provide code or tutorial

Can any one tell me where the email attachments are stored in the iPhone ??

thanks in advance.


Your application cannot read the user inbox. If your application wants to have Microsoft Word documents and Excel spreadsheet, it will have to register with iOS that it can handle those types of documents. Introduction to Uniform Type Identifiers Overview

Then when the user selects the attachment in the e-mail message, your application will be listed in "Open in..." dialog presented to the user. If the user if selects your app, your app will get the URL of document. At that point you can upload the file to the server.


you have to implement your own email client. libetpan works quite well for this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜