ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Suggestions
  New Posts New Posts RSS Feed - Downloadable Product File Sizes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Downloadable Product File Sizes

 Post Reply Post Reply
Author
Message
Benissimo View Drop Down
Newbie
Newbie


Joined: 28-September-2009
Location: Cali
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Benissimo Quote  Post ReplyReply Direct Link To This Post Topic: Downloadable Product File Sizes
    Posted: 28-September-2009 at 2:08pm
The maximum 4MB "hidden url" option is much too small for us.

We fortunately have Persit's ASPUpload component onboard that securely downloads large files as a binary stream.  Touching up the "downloadFile(strFile)" function in /pc/downloadnow.asp as follows did the trick:

Dim objUpload
Set objUpload = Server.CreateObject("Persits.Upload")
objUpload.SendBinary strFilename, True, "application/octet-binary", True
Set objUpload = Nothing

If you had a component check for downloadable products, it would be nice not to be hampered by the 4MB maximum file size limitation without code changes.

Just a thought.

Cheers
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 28-September-2009 at 2:35pm
Nice to hear.  Thanks for posting this.  I've bumped up against this issue and appreciate your input.

Edited by Greg Dinger - 28-September-2009 at 2:36pm
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 28-September-2009 at 3:50pm
Nice tip, Benisimo.
 
The technical issue is that without the use of a 3rd party component, IIS can only push 4 MB of data in a single response by default (the IIS metabase can be edited to change that, but that might not be the best idea depending, and is very unlikely to be an option on shared hosting servers).
 
Most folks running PC should probably be on servers running Persist's ASPUpload, so they should be able to make use of this.
Back to Top
kcramer View Drop Down
Newbie
Newbie


Joined: 08-November-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote kcramer Quote  Post ReplyReply Direct Link To This Post Posted: 08-November-2009 at 9:50am
We have the same problem with the 4MB limitation. 4MB is much too small for the downloadable product we're planning to release later this month.
 
I have one question:
 
Where in the downloadnow.asp file should we add the code mentioned at the beginning of this thread? Our server is running Persit's ASPUpload, so hopefully this solution will solve the problem of the 4MB limitation.
 
I'm not a programmer, but if it's a matter of copying and pasting this code to add it into the file, or using this code to replace some of the code that's already in the file, I can manage that if someone would be kind enough to let me know exactly where to put it.
 
Thanks in advance for any help!
 
~ Kristen
Back to Top
BrianRoden View Drop Down
Groupie
Groupie


Joined: 07-September-2007
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote BrianRoden Quote  Post ReplyReply Direct Link To This Post Posted: 12-November-2009 at 11:23am
As Kristen requested above, please post more detail on the modifications to the downloadFile() function. Which lines of downloadnow.asp are you replacing with this code?
Back to Top
Benissimo View Drop Down
Newbie
Newbie


Joined: 28-September-2009
Location: Cali
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Benissimo Quote  Post ReplyReply Direct Link To This Post Posted: 27-August-2010 at 4:23pm
Sorry about the late reply, here's how I plugged the code into the script /pc/downloadnow.asp:

On Line 119, there is this five lines of code:

' send the headers to the users browser
Response.AddHeader "Content-Disposition", "attachment; filename=" & FileName1
Response.AddHeader "Content-Length", intFilelength
Response.Charset = "UTF-8"
Response.ContentType = "application/octet-stream"

Comment this out and enter this code instead:

Dim objUpload
Set objUpload = Server.CreateObject("Persits.Upload")
objUpload.SendBinary strFilename, True, "application/octet-binary", True
Set objUpload = Nothing

That's it and of course, you'll need the ASPUpload component installed on the web server. The component should theoretically cater to any file size you want, in our case the files were around 2GB's and it worked fine. To find out more about this component and how much it costs, go here:

http://www.aspupload.com/

Cheers
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.