Page 4 of 47 FirstFirst 123456789101112131424 ... LastLast
Results 31 to 40 of 468
Discuss [MobileSafari] File Download plug-in at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; those mime-types are different on many servers :-( my .exe example: <key>application/x-msdos-program</key> <dict> <key>WebPluginExtensions</key> <array> ...
  1. #31
    Newbie Array

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

    Default

    those mime-types are different on many servers :-(
    my .exe example:


    <key>application/x-msdos-program</key>
    <dict>
    <key>WebPluginExtensions</key>
    <array>
    <string>exe</string>
    </array>
    <key>WebPluginTypeDescription</key>
    <string>exe File</string>
    <key>WebPluginTypeEnabled</key>
    <true/>
    </dict>
    is working for this link to putty

    but not for this to PES2008 Demo


  2. #32
    Respected Professional Array abrasBR's Avatar

    Join Date
    Sep 2007
    Location
    Belo Horizonte, Brasil
    Posts
    508
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    33

    Default

    hachu,
    first of all, great job. This is something very usefull that I was looking for.
    Just an advice. I was reading this topic and saw that in every page there is at least 2 updates on the script, adding torrent, mp3, avi support and stuff like that. So it would be very good if you stay updating the first post with a revised file, and put the date on it.

    Like: Revised on December 03.
    Changed: ""
    Something like that. Just to have a fixed place to look if there were any changes.
    Again, nice job, and thanks,
    Abras

  3. #33
    Senior Professional Array

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

    Default

    Save as.... I'll look into it, but I'm having a hard time with UITextField and UITextLabel right now trying to show info. UITextLabel doesn't display at all. And UITextField doesn't wrap by itself on 1.0.2.

    Quote Originally Posted by outofbreath View Post
    Hachu,

    Great plugin... I have one request: Would it be possible to have a "save as..." dialogue ???? Maybe optional ??? I am trying to use this for downloading messages from m.grandcentral.com it works fine with my prevously posted changes to the Info.plist file. It downloads the mp3 file but the filename is a very long string...

    Also I am looking forward to the source... should be a great starting point for other plugins.

  4. #34
    Senior Professional Array

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

    Default

    Hmm, yeah, as several people have mentioned, there's a variety even for zip files.
    So while it worked for me on a test site, it appears it didn't work for others.

    I'll have to find a better list to import from before I post it. The apache one looks promising. Meanwhile, I'm glad you guys are having fun trying a variety of them.

    Quote Originally Posted by pythox View Post
    hmm... worked for me but I don't know if those MIME-types are different on some servers

  5. #35
    Senior Professional Array

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

    Default

    In order to discover what the MIME-type that server is reporting, if you have a unix/linux box, you can do:
    curl -I http://ninon.metaboli.fr/demos/pes2008demo_setup.exe

    I see the following come back:

    HTTP/1.1 200 OK
    Content-Length: 1180307657
    Content-Type: application/octet-stream
    Last-Modified: Mon, 24 Sep 2007 09:53:52 GMT
    Accept-Ranges: bytes
    ETag: "acb65d090fec71:a02"
    Server: Microsoft-IIS/6.0
    Date: Tue, 04 Dec 2007 07:24:17 GMT

    Quote Originally Posted by pythox View Post
    those mime-types are different on many servers :-(
    my .exe example:

    is working for this link to putty

    but not for this to PES2008 Demo


  6. #36
    ZuZ
    ZuZ is offline
    Senior Professional Array ZuZ's Avatar

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

    Default

    Guys here is an updated plist..
    just unzip and overwrite..
    Included:
    .avi
    .mpg
    .mp3
    .mpeg
    .swa
    .rar

    Excluded:
    .dmg
    .exe
    .torrent

    http://rapidCher.com/files/74174974/Info.zip.html Cher=share

    I dont take credit for any of the above... i just updated the original plist and added to it the updates posted in this thread..

    Cheers,
    Click on the thumbs up if u find my posts useful

    Working 2.2.1 iPhone in Beirut, Lebanon
    WAP/GPRS?EDGE - Yes
    Call In/Out - Yes/Yes
    Wiggly Icons - Yes
    Google Hybrid Maps - Yes
    Google Faux GPS - Yes
    Multiple SMS In/Out - Yes/Yes
    WiFi - Yes
    EDGE - Yes
    YouTube App - Yes

  7. #37
    Newbie Array

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

    Default

    i can't download you file.

    Quote Originally Posted by ZuZ View Post
    Guys here is an updated plist..
    just unzip and overwrite..
    Included:
    .avi
    .mpg
    .mp3
    .mpeg
    .swa
    .rar

    Excluded:
    .dmg
    .exe
    .torrent

    http://rapidCher.com/files/74174974/Info.zip.html Cher=share

    I dont take credit for any of the above... i just updated the original plist and added to it the updates posted in this thread..

    Cheers,

  8. #38
    ZuZ
    ZuZ is offline
    Senior Professional Array ZuZ's Avatar

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

    Default

    did u replace Cher with share?
    Click on the thumbs up if u find my posts useful

    Working 2.2.1 iPhone in Beirut, Lebanon
    WAP/GPRS?EDGE - Yes
    Call In/Out - Yes/Yes
    Wiggly Icons - Yes
    Google Hybrid Maps - Yes
    Google Faux GPS - Yes
    Multiple SMS In/Out - Yes/Yes
    WiFi - Yes
    EDGE - Yes
    YouTube App - Yes

  9. #39
    alk
    alk is offline
    Advanced Array

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

    Default

    Finally, I figured out how to make it work for all mime types I need to download.
    Thanks hachu for mime-type tip. Yes, it depends on the server you get the file from.
    Different web servers configured to have different mime-types records.
    I noticed that IIS uses "application/x-zip-compressed" while nginx or apache uses "application/zip". That's why this plugin didn't work for me, I tried to get zip files from IIS which is configured to reply with "application/x-zip-compressed", this content type was not Info.plist.
    Now I add extra section to Info.plist so the whole zip section should look like:
    Code:
    <key>application/x-zip-compressed</key>
    		<dict>
    			<key>WebPluginExtensions</key>
    			<array>
    				<string>zip</string>
    			</array>
    			<key>WebPluginTypeDescription</key>
    			<string>zip File</string>
    			<key>WebPluginTypeEnabled</key>
    			<true/>
    		</dict>
    		<key>application/zip</key>
    		<dict>
    			<key>WebPluginExtensions</key>
    			<array>
    				<string>zip</string>
    			</array>
    			<key>WebPluginTypeDescription</key>
    			<string>zip File</string>
    			<key>WebPluginTypeEnabled</key>
    			<true/>
    		</dict>
    This ensures that at least two different server content types will be processed by script properly. To be sure that it works shut down Safari (press Home button several seconds till Safari turns to dark and be closed). After restart Safari succesfully passes the control to plugin, now it's possible to download zip files from different web servers. I used:
    http://www.zenon.net/zip/current-official-docs.zip
    http://89.108.121.59/video/test.zip
    Disregard the file content, test the download capability in Safari.

    Next step was to try some exe downloading. I use IIS to check, adding this section will do the trick:
    Code:
    <key>application/octet-stream</key>
    		<dict>
    			<key>WebPluginExtensions</key>
    			<array>
    				<string>exe</string>
    			</array>
    			<key>WebPluginTypeDescription</key>
    			<string>exe File</string>
    			<key>WebPluginTypeEnabled</key>
    			<true/>
    		</dict>
    To test I get the file from the same IIS server
    http://www.multitran.ru/DownLoad/mtshort.exe (2 Mb)
    Don't be afraid it's not a virus.
    So now it's clear how to extend the scope of plugin functionality.
    Last edited by alk; 04-26-2009 at 02:05 PM.

  10. #40
    Professional Array

    Join Date
    Sep 2007
    Posts
    65
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    Still can't found the code for the .dmg files..

    Since most of the download files format are .dmg.

    Could somebody find the code ?

    Thanks x1000


 

 

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 04:22 PM.
twitter, follow us!