Notices

Great community. Great ideas.

Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.

Thread: Download Manager: downloading files from secure location (classic ASP)

Page 4 of 6 FirstFirst ... 23456 LastLast
Results 46 to 60 of 90
Share This Thread →
  1. #46
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Quote 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
    webb is offline Help and be helped
    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

  3. #48
    triagency is offline Registered User
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0
    Quote 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.

  4. #49
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Quote 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.

  5. #50
    Mark Iliff is offline Registered User
    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.


  6. #51
    AdrianM85 is offline Registered User
    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!!

  7. #52
    obiwanwrc is offline Registered User
    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

  8. #53
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Quote 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?

  9. #54
    obiwanwrc is offline Registered User
    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.

  10. #55
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Quote 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.

  11. #56
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    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.

  12. #57
    webb is offline Help and be helped
    Join Date
    Feb 2004
    Location
    Australia
    Posts
    584
    Rep Power
    123
    Thanks for the heads up!

  13. #58
    rtown is offline Contributing User
    Join Date
    Aug 2010
    Posts
    247
    Rep Power
    17
    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.

  14. #59
    rtown is offline Contributing User
    Join Date
    Aug 2010
    Posts
    247
    Rep Power
    17
    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.

  15. #60
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Quote 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!

Page 4 of 6 FirstFirst ... 23456 LastLast
Share This Thread →

Become Part of This Conversation

Join NowFor Free!

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

ASP Free Advertisers and Affiliates