savadinejad / remail-iphone

Automatically exported from code.google.com/p/remail-iphone
0 stars 0 forks source link

Error displaying attachments #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Send a email with a pdf attachment to your gmail account 
2. Sync emails to download the email to your reMail app
3. Click the attachment name (the pdf file) to start download and display

What is the expected output? What do you see instead?
Instead of seeing the file you get an error message
Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted"
right after the "Displaying..." message.

What version of the product are you using? On what operating system?
I'm using the last version of reMail. I downloaded it last week. I'm getting 
this error in iOS 4.1

Please provide any additional information below.
I corrected this error by modifying 2 files: AttachmentDownloader.m and 
AttachmentViewController.m

In AttachmentDownloader.m I check to see if the filename of the attachment has 
an extension and I add that extension to the name of the file that is saved on 
the disk. I do the same thing in -(void)deliverAttachment from 
AttachmentViewController.m.

Apparently the webView has a problem reading files without extension.

Original issue reported on code.google.com by ochiana....@gmail.com on 15 Feb 2011 at 10:52

GoogleCodeExporter commented 9 years ago
May be your simulator doesn't have the app to view the pdf file.

Original comment by fvlong...@gmail.com on 5 Mar 2011 at 3:36