#46
  1. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2921
    Originally Posted by k1mzen
    When downloading a mp3 (4.7MB) through the DownloadManager my max speed is about 5% (40kBps) of my total line max (900kBps). E.g.: mydomain.com/file=music.mp3

    And when downloading without the DownloadManager i get full speed. E.g.: mydomain.com/music.mp3

    Is there a download limit in the script? How can I get around this "limit"?
    nope, not something that's I know of. what you mean by
    "downloading without DownloadManager"? downloading how?
  2. #47
  3. No Profile Picture
    Help and be helped
    ASP Adventurer (500 - 999 posts)

    Join Date
    Feb 2004
    Location
    Australia
    Posts
    584
    Rep Power
    123
    If you feel it's not fast enough then you can remove it and use the normal way.
    Life is Good
  4. #48
  5. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0
    Originally Posted by Shadow Wizard
    nope, not something that's I know of. what you mean by
    "downloading without DownloadManager"? downloading how?
    I had the same problem as the last person. The IsClientConnected part of the code seems to slow down the actual download speed. If I setup a test with the script, I get 150K max from speeds, whereas I can get 1.2MB speeds if I setup the same file with a href link and right click it.

    This script is great, and I really appreciate it, but I would love to get the speed faster. Any ideas? I have tried changing chunk size etc but no luck.
  6. #49
  7. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2921
    Originally Posted by triagency
    I had the same problem as the last person. The IsClientConnected part of the code seems to slow down the actual download speed. If I setup a test with the script, I get 150K max from speeds, whereas I can get 1.2MB speeds if I setup the same file with a href link and right click it.

    This script is great, and I really appreciate it, but I would love to get the speed faster. Any ideas? I have tried changing chunk size etc but no luck.
    sorry, never considered this. if you suspect IsClientConnected then remove
    that line and check the speed, let me know how it goes.
    that part of the code is not vital so it won't cause any problem.
  8. #50
  9. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Thumbs up Wonderful stuff


    Thanks very much for sharing this. Best ASP downloader I've found in quite a long search.

  10. #51
  11. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Thank you


    Only took me about 1week at work to finally come across your posting which actually made sense and was able to get my work site to be able to force download

    Keep up the good work!!
  12. #52
  13. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Download issue with Internet Explorer


    First of all, I would like to thank you because this script is wonderful!

    However, I have an issue with Internet Explorer: forcing download the browser prompts for downloading or opening directly; if you choose to open directly, sometimes the target application says that the file is already opened and cannot be opened.

    This bheaviour isn't repetitive: it happens only in certain sites (all of them in the same server), it happens only for certain files and with firefox do not happen at all.

    Any ideas? It would really help me.

    Thanks a lot, Pat
  14. #53
  15. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2921
    Originally Posted by obiwanwrc
    First of all, I would like to thank you because this script is wonderful!

    However, I have an issue with Internet Explorer: forcing download the browser prompts for downloading or opening directly; if you choose to open directly, sometimes the target application says that the file is already opened and cannot be opened.

    This bheaviour isn't repetitive: it happens only in certain sites (all of them in the same server), it happens only for certain files and with firefox do not happen at all.

    Any ideas? It would really help me.

    Thanks a lot, Pat
    Glad you like it Pet!

    Regarding the problem, really nothing we can do with code, it's pure
    browser/OS issue. The browser save the file into temporary folder
    and opens it from there. Probably IE isn't handling the issue very
    well (surprise surprise ) and we really can't do anything.

    By the way, what files cause this? Anything special in those files?
  16. #54
  17. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0
    My godness, this is what I call a prompt response!!! Thanks a lot mate!

    No special file, it happens for example with a 284Kb PDF... I will try to investigate more about IE issues.

    Thanks again, for your support and for the extraordinary work.
  18. #55
  19. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2921
    Originally Posted by obiwanwrc
    My godness, this is what I call a prompt response!!! Thanks a lot mate!

    No special file, it happens for example with a 284Kb PDF... I will try to investigate more about IE issues.

    Thanks again, for your support and for the extraordinary work.
    No problem, if it happens only with PDF it's worth checking your PDF Add-on
    to the browser maybe something went wrong there.
  20. #56
  21. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2921
    Important update.. just checked my code on IIS 7 and it won't
    work for binary files like PDF, probably MIME Type problem.

    Until I figure this out completely, there is way around. You can
    force the download (force=true flag) then the file
    DownloadManager.asp remove those three lines:
    Code:
    		Response.AddHeader "Content-Length", iSz
    		Response.Charset = "UTF-8"
    		Response.ContentType = strContentType
    Those lines are causing the problem (page can't be displayed)
    and by removing them the code will work and send the file to
    the browser.

    Though the browser won't recognize the file type, it will be
    saved properly.

    Happy programming, I'll update when I find better solution.
    Last edited by Shadow Wizard; September 1st, 2010 at 03:37 AM.
  22. #57
  23. No Profile Picture
    Help and be helped
    ASP Adventurer (500 - 999 posts)

    Join Date
    Feb 2004
    Location
    Australia
    Posts
    584
    Rep Power
    123
    Thanks for the heads up!
  24. #58
  25. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Aug 2010
    Posts
    247
    Rep Power
    18
    Would love to see this working under IIS7! Its well over my head but if anyone has any contributions for this code it would be a perfect solution. Great script, hope it gets working again.
  26. #59
  27. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Aug 2010
    Posts
    247
    Rep Power
    18
    A note to everyone. To get this script working in IIS7 with forced=false, instead of deleting all 3 lines as Shadow Wizard said above, leave this line:

    Code:
    Response.ContentType = strContentType
    Do not delete that. And it now works.
  28. #60
  29. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2921
    Originally Posted by rtown
    A note to everyone. To get this script working in IIS7 with forced=false, instead of deleting all 3 lines as Shadow Wizard said above, leave this line:

    Code:
    Response.ContentType = strContentType
    Do not delete that. And it now works.
    Really weird! So either the content length or charset is causing problem.

    Thanks for finding and sharing this!

Similar Threads

  1. File Download problems
    By clboren in forum ASP Development
    Replies: 0
    Last Post: March 15th, 2005, 04:54 PM
  2. Issue downloading large files
    By Ceuphrasie in forum ASP Development
    Replies: 13
    Last Post: March 14th, 2005, 10:33 AM
  3. Download Two Files From One Button?
    By Currie in forum .NET Development
    Replies: 1
    Last Post: February 5th, 2005, 03:56 AM
  4. Downloading files
    By Zil in forum .NET Development
    Replies: 7
    Last Post: January 8th, 2005, 08:23 AM
  5. FTP download a number of files with same extension
    By otarboy in forum Visual Basic Programming
    Replies: 1
    Last Post: September 29th, 2004, 11:27 AM

IMN logo majestic logo threadwatch logo seochat tools logo