A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.
I have a need to upload large-ish files (up to 30MB) to a Win2K3/IIS6 server using classic ASP. I'm a novice to uploading, so do you have any suggestions for existing scripts? I found a few via Google, but they bork on files larger than 7-8MB.
If you suggest I write my own, are there any "gotchas" I need to look out for?
It's been a while, but from what I remember, there are many free scripts that do file upload using pure ASP - you can also purchase components as well. As I recall they were all doing roughly the same thing - parsing the incoming header, getting the data bits and writing them to disk/db (although I'm sure the quality of code varies).
Anyhow, the key was tweaking the Server.Timeout property, which I believe was done via script, to increase it to a time sufficient enough to allow for the upload to occur. You may also be able to adjust a setting within IIS itself to ensure the page doesn't timeout.
Friday, May 04, 2007
For what it's worth, I've used a component called ASPUploader and found it to work well. It's commercial, but it's only $50 and if you're really tight on cash you can use the fully-functional trial version indefinitely (thought it will nag once in a while).
And since it's about the only thing that can go wrong, I'll remind you to set Server.ScriptTimeout to something big before you invoke the Upload method.
Monday, May 07, 2007
At my current job I'm a Classic ASP/VBScript/SQL Server developer. We currently use an old version of SA FileUp from software artisans: http://fileup.softartisans.com/ . Pricing varies... but current versions look expensive ($400+). This is a component that must be installed/registered on the webserver.
I think we're still on version 3.51 and haven't upgraded because it works fine for our uses, which includes the occasional 100MB+ file upload.
I played around with some of the free VBScripts out there and they were much slower, if they worked at all.
This topic is archived. No further replies will be accepted.Other recent topics
Powered by FogBugz