Results 1 to 10 of 10
Discuss [MobileSafari] view local file with Beta 3 at the iPhone Developer Exchange - Hackint0sh.org; is it possible to view local file (pdf) in safari with beta3? thanks...
  1. #1
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    175
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default [MobileSafari] view local file with Beta 3

    is it possible to view local file (pdf) in safari with beta3? thanks



  2. #2
    Amazingly Knowledgeable Array

    Join Date
    Aug 2007
    Posts
    757
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    45

    Default

    Since I cannot load the Installer, I am not sure whether it is possible for me to install lighthttpd in beta 3 firmware.

    But one thing is that Safari can view common document files including pdf

  3. #3
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    175
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    safari does not allow me to open my pdf because it is a local file. is there a hack or work around in order to view local pdf with safari? thanks

  4. #4
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Default

    Quote Originally Posted by eddy123 View Post
    Since I cannot load the Installer, I am not sure whether it is possible for me to install lighthttpd in beta 3 firmware.

    But one thing is that Safari can view common document files including pdf
    Yes you can install lighttpd and also PHP in beta 3, but you have to do manually download them using wget in iPhone , or ssh/scp to iPhone.

    If you want to disable/enable the lighttpd, you have to do it in a shell script.

  5. #5
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    175
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    Quote Originally Posted by javacom View Post
    Yes you can install lighttpd and also PHP in beta 3, but you have to do manually download them using wget in iPhone , or ssh/scp to iPhone.

    If you want to disable/enable the lighttpd, you have to do it in a shell script.
    with no Installer on 2.0 beta, where can i download lighttpd? and do i just ssh it into Applications folder on my iPhone? thanks


  6. #6
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by jowo View Post
    safari does not allow me to open my pdf because it is a local file. is there a hack or work around in order to view local pdf with safari? thanks
    What eddy123 was trying to explian is that safari is able to open and display PDF among other formats. To use the feature you have to send an E-Mail with the attached PDF to your own (IMAP) account.
    I set up an IMAP folder named docs-on-the-go and moved it on my pc to that folder. On the iPhone connect to your E-mail account, goto that folder and open the mail/attached PDF. It's displayed, you can scroll pages zoom etc. Even better, once done that, the PDf will even be available (same way) when you are oggline (no Wi-Fi no EDGE).

    volkspost
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  7. #7
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    175
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    Quote Originally Posted by volkspost View Post
    What eddy123 was trying to explian is that safari is able to open and display PDF among other formats. To use the feature you have to send an E-Mail with the attached PDF to your own (IMAP) account.
    I set up an IMAP folder named docs-on-the-go and moved it on my pc to that folder. On the iPhone connect to your E-mail account, goto that folder and open the mail/attached PDF. It's displayed, you can scroll pages zoom etc. Even better, once done that, the PDf will even be available (same way) when you are oggline (no Wi-Fi no EDGE).

    volkspost

    Mail (beta 3) can't read multi-pages pdf. my solution for now is to convert my pdf into jpeg using Adobe Acrobat or Apple Preview. then might them in iPhoto

  8. #8
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Default

    Quote Originally Posted by jowo View Post
    with no Installer on 2.0 beta, where can i download lighttpd? and do i just ssh it into Applications folder on my iPhone? thanks
    You can download lighttpd from

    http://repo.smxy.org/iphone-apps/zip...d-1.4.17-2.zip

    use this command to download using wget
    Code:
    wget --header "User-Agent: CFNetwork/152.4" http://repo.smxy.org/iphone-apps/zips/lighttpd-1.4.17-2.zip
    You can refer to the installation script from the Installer, to install lighttpd
    Code:
    			<key>install</key>
    			<array>
    				<array>
    					<string>CopyPath</string>
    					<string>Library</string>
    					<string>/Library</string>
    				</array>
    				<array>
    					<string>CopyPath</string>
    					<string>usr</string>
    					<string>/usr</string>
    				</array>
    				<array>
    					<string>CopyPath</string>
    					<string>var/log</string>
    					<string>/var/log</string>
    				</array>
    				<array>
    					<string>IfNot</string>
    					<array>
    						<array>
    							<string>ExistsPath</string>
    							<string>/var/root/Sites</string>
    						</array>
    					</array>
    					<array>
    						<array>
    							<string>CopyPath</string>
    							<string>var/root</string>
    							<string>/var/root</string>
    						</array>
    					</array>
    				</array>
    				<array>
    					<string>Exec</string>
    					<string>/bin/launchctl load /Library/LaunchDaemons/com.amcgregor.lighttpd.plist</string>
    				</array>
    			</array>
    Last edited by javacom; 04-21-2008 at 10:04 AM.

  9. #9
    Professional Array underwaterdub's Avatar

    Join Date
    Mar 2008
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default

    What do you mean by:
    "You can refer to the installation script from the Installer, to install lighttpd"???

    What exactly do I have to do to get lighttpd installed?

  10. #10
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Default

    Quote Originally Posted by underwaterdub View Post
    What do you mean by:
    "You can refer to the installation script from the Installer, to install lighttpd"???

    What exactly do I have to do to get lighttpd installed?

    I suppose you know and understand the install scripts (from Installer) that I attached. Just follow the scripts to install.


 

 

Similar Threads

  1. [MobileSafari] File Download plug-in
    By hachu in forum Free Toolchain Software (Cydia App's)
    Replies: 467
    Last Post: 11-06-2012, 03:13 AM
  2. [MobileSafari] my way to see local files on iPhone
    By cousincocaine in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 06-17-2008, 05:59 PM
  3. [MobileSafari] Local File Viewer for 1.1.2 ?
    By pdieguez_br in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 04-14-2008, 11:21 AM
  4. [Req] 1.1.2 MobileSafari patch for file://
    By 55ting55 in forum Free Toolchain Software (Cydia App's)
    Replies: 8
    Last Post: 03-27-2008, 12:04 AM
  5. [Dev/MobileSafari] File Download plugin source posted.
    By hachu in forum Free Toolchain Software (Cydia App's)
    Replies: 0
    Last Post: 01-17-2008, 02:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 03:44 PM.
twitter, follow us!