Page 1 of 47 123456789101121 ... LastLast
Results 1 to 10 of 468
Discuss [MobileSafari] File Download plug-in at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; So, I got curious after work one day and decided to figure out how to ...
  1. #1
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    151
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default [MobileSafari] File Download plug-in

    So, I got curious after work one day and decided to figure out how to write a simple MobileSafari plugin. This took me 3 days.

    This one lets you download most zip and tar files. I tried to make it download png, gif, and jpgs, but because Safari handles it already, I don't think I can ever make that work.

    This was developed targeting 1.0.2. I haven't tried it on 1.1.1 or 1.1.2.
    (Updated) XianLi says in this thread that it works fine for him on 1.1.2.

    No warranty or liability of any kind, of course. Don't blame me if it somehow messes up your data, though it isn't supposed to affect anything outside the Downloads folder it created.

    How to use:
    Copy the plugin bundle into "/System/Library/Internet Plug-Ins", and then reboot the phone.
    It will create a folder called Downloads next to Library and Media in your root home folder. It will only download there.

    When you click on a link that is downloadable, a large button will appear. Click on it to download. Click the normal page back button to not download, or to go back when it's complete.

    http://www.badongo.com/file/5544413

    Update: Version 0.2 posted.
    New to 0.2: Progress bar. Basic instructional text. Allow user to choose name to save as.
    Features tried and failed: Percentage and KB/sec as text. I have the value as a variable, NSString simply fails to display it correctly on 1.0.2.

    Anything else I want to say cuz you're still reading:
    Yes, it looks kinda ugly.
    Please don't post any requests for other plugins in this thread. That's a good sign for me to ignore you.
    Like any other projects I do publicly, whether or not I continue to improve it is based off how much time I have outside of work, whether or not I feel like working on it, and the quality of feedback I get. (seeing stupid posts with awful use of punctuation and no real content or irrelevant content makes me lose interest fast, seeing high quality posts like "By the way, if I do this, this, and this, it crashes. I think you might have forgot to check if such and such value happens to be blank" makes me feel appreciated because you're showing to me you actually care and are trying to be constructively helpful.)
    Last edited by hachu; 12-11-2007 at 06:00 AM. Reason: Updated for 0.2.



  2. #2
    Advanced Array

    Join Date
    Oct 2007
    Posts
    43
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    If you want constructive help, release the sources...

  3. #3
    Advanced Array

    Join Date
    Nov 2007
    Posts
    40
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Works well for me on 1.1.1 .. let me download it fine.

    For anyone that doesnt know.. it saves it in /var/root/Downloads

    I also tried adding extensions to the plist, but that doesnt seem to work, is there something that needs to be added to the LCDownloader aswell? If so can you please make this opensource so we can experiment ourselves

    Looks very promising, hope a lot more extensions will be added!

  4. #4
    Newbie Array

    Join Date
    Dec 2007
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Thank you so much hachu for releasing it, i think it can be really promising ! Now we're all waiting for you to release the source so that we could give you some help to improve it...

  5. #5
    Professional Array Pablo Diablo's Avatar

    Join Date
    Oct 2007
    Posts
    81
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    can you download mp3 with this? Or is it just zip and tar?


  6. #6
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    151
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default

    You'll have to add the mime type that it appears with, so use the tar and zip examples and replicate that.

    The app itself doesn't carry the mime/ext info, so it's just the plist. This is because of how the plugin system works, so I don't think can't change this. (at least that's what the docs seem to say)

    I added entries to the plist for image types, but I either got the wrong mime types or Safari skips trying to load plugins for those because it knows it can handle them itself. So feel free to experiment on that.

    Also, I don't know what happens if you add anything that is normally supported by the Quicktime Plugin. So, I didn't try mp3s.

    The source looks like a complete mess because I tried to display more info using a UITextField and it didn't work, so I'll consider releasing it later when there's no longer more code commented out than actually running.

    Quote Originally Posted by thatonealex View Post
    Works well for me on 1.1.1 .. let me download it fine.

    For anyone that doesnt know.. it saves it in /var/root/Downloads

    I also tried adding extensions to the plist, but that doesnt seem to work, is there something that needs to be added to the LCDownloader aswell? If so can you please make this opensource so we can experiment ourselves

    Looks very promising, hope a lot more extensions will be added!

  7. #7
    Former Bender
    Guest

    Default

    Great plugin !

    Confirmed to work on 1.1.2

  8. #8
    Advanced Array

    Join Date
    Nov 2007
    Posts
    40
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Ive found the one required for .avi files..

    add this to the plist..

    Code:
    <key>video/x-msvideo</key>
    		<dict>
    			<key>WebPluginExtensions</key>
    			<array>
    				<string>avi</string>
    			</array>
    			<key>WebPluginTypeDescription</key>
    			<string>avi File</string>
    			<key>WebPluginTypeEnabled</key>
    			<true/>
    		</dict>

  9. #9
    Advanced Array

    Join Date
    Oct 2007
    Posts
    43
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Great plugin, can't wait for the sources

  10. #10
    Developer Array

    Join Date
    Sep 2007
    Location
    Germany
    Posts
    227
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    19

    Default

    Could somebody please upload it to rapid$hare? the waiting time is horrible...


 

 
Page 1 of 47 123456789101121 ... LastLast

LinkBacks (?)

  1. 04-22-2009, 03:56 PM
  2. 03-25-2009, 07:00 PM
  3. 03-17-2009, 11:43 AM
  4. 03-16-2009, 01:35 PM
  5. 03-11-2009, 08:29 PM
  6. 03-11-2009, 05:51 PM
  7. 03-11-2009, 01:17 PM
  8. 02-16-2009, 12:20 PM
  9. 02-03-2009, 02:32 AM
  10. 01-28-2009, 12:38 AM
  11. 01-17-2009, 01:25 PM
  12. 01-15-2009, 03:03 PM
  13. 01-15-2009, 02:45 PM
  14. 01-14-2009, 10:13 PM
  15. 01-14-2009, 07:31 PM
  16. 01-14-2009, 05:56 PM
  17. 01-14-2009, 04:26 PM
  18. 01-14-2009, 02:12 PM
  19. 01-14-2009, 12:43 PM
  20. 01-14-2009, 11:30 AM
  21. 01-14-2009, 11:13 AM
  22. 01-14-2009, 10:50 AM
  23. 01-14-2009, 10:43 AM

Similar Threads

  1. [MobileSafari] view local file with Beta 3
    By jowo in forum iPhone Developer Exchange
    Replies: 9
    Last Post: 04-22-2008, 07:59 AM
  2. [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
  3. [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
  4. [MobileSafari] Flash - How To Download and Watch Flash in MobileSafari
    By vandy1997 in forum Free Toolchain Software (Cydia App's)
    Replies: 11
    Last Post: 03-16-2008, 05:12 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 12:10 AM.
twitter, follow us!