Our Smartphone Network: BlackBerryWindows MobileAndroidPalm Pre
iPhone Forums
EverythingiCafe iPhone cases, accessories iPhone Social iPhone Wallpapers iPhone forums iPhone blog iPhone accessory reviews iPhone news

Go Back   iPhone Forums > Modifications > Third Party Applications




Reply
 
LinkBack Thread Tools Display Modes
Old 02-15-2008, 04:30 PM   #1 (permalink)
 
Join Date: Dec 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to use file:// safari patch?

I downloaded the 1.1.3 Safari Patch, but I'm not sure how to use it. I want to be able to view certain files locally, i.e. word docs, pdf and html files. But I'm not sure what I'm supposed to do after installing this app.
apophoenix is offline  
Digg this Post!Share on Facebook!
Reply With Quote
Old 02-15-2008, 06:18 PM   #2 (permalink)
 
x666x's Avatar
 
Join Date: Jan 2008
Posts: 468
Thanks: 0
Thanked 1 Time in 1 Post
Default

The files need to be placed somewhere on the phone first, obviously. I like to put my PDF files in the media folder. To view one in safari I type this URL:

file:///var/mobile/Media/pdf/mypdf.pdf

Do you notice the 3 "/'s" in that URL? Its not a typo, that third / is the first character in "/var/mobile/Media"

If you can wrap your head around that you should be fine.
__________________
I'm saving my 999th post for something "in the air" so until then I won't be posting on x999x
x666x is offline  
Digg this Post!Share on Facebook!
Reply With Quote
Old 02-15-2008, 06:52 PM   #3 (permalink)
 
Join Date: Dec 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Originally Posted by x666x View Post
The files need to be placed somewhere on the phone first, obviously. I like to put my PDF files in the media folder. To view one in safari I type this URL:

file:///var/mobile/Media/pdf/mypdf.pdf

Do you notice the 3 "/'s" in that URL? Its not a typo, that third / is the first character in "/var/mobile/Media"

If you can wrap your head around that you should be fine.
Thanks! The entire time, I was typing only two "/"s.
apophoenix is offline  
Digg this Post!Share on Facebook!
Reply With Quote
Old 10-09-2008, 07:49 AM   #4 (permalink)
 
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem

y when im using safari to view local file it say's you don't have permission to view.pdf
bubuli7 is offline  
Digg this Post!Share on Facebook!
Reply With Quote
Old 04-18-2009, 02:22 PM   #5 (permalink)
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Has anyone found the fix for this?

I can see this post is old. After searching google it's still the best thread concerning the subject. Has anyone found a fix yet? I followed the same steps above and I get the "no permission" problem too. I have checked all files via ssh and permissions are set to 0755. Am I missing anything else?
wookiemonster is offline  
Digg this Post!Share on Facebook!
Reply With Quote
Old 04-18-2009, 03:55 PM   #6 (permalink)
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Got it working

Ok I found a fix that worked for me, or a least I found my own error^^

I'm running firmware 2.2.1 and found my Safari patch in Cydia as "file:// Schema in Safari" after jailbreaking my iPod Touch and installing all essential updates via Cydia.

Under details of the patch it says "might not be able to access files in /var/mobile/Media" like in the above example directory. Instead I just made a new directory on the drive for example /NewFolder/PDF/myPDF.pdf via ssh (fugu).

Once my pdf's were placed in the folder of my choice I checked permissions under info for good practice and copied the directory address. I created new bookmarks in Safari on my mac as for example "file:///NewFolder/PDF/myPDF.pdf" then choose to sync via iTunes.

Now I have working PDF's as offline contant (index study cards for school .. Yay^^) and they work perfectly thus far with no issues.

I have spent a day at this. First I tried FileMarkMaker but had crash issues and lag time, but this new method is much better and easier to manange. Thanks to all who make these thing happen!

(psss .... yes wordy as to spiderbots right into my trap and help others who are spending way too much time trying to get PDF's to work offline on iPod Touch)

Last edited by wookiemonster; 04-18-2009 at 03:58 PM..
wookiemonster is offline  
Digg this Post!Share on Facebook!
Reply With Quote
Old 04-24-2009, 08:31 PM   #7 (permalink)
 
Join Date: Apr 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

just come to have a look
__________________
offer you something special:
www.cntradeshop.com
zh3388 is offline  
Digg this Post!Share on Facebook!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Integrated by BBpixel