Author |
Topic  |
|
DanaWeatherford
Starting Member
USA
2 Posts |
Posted - 03 December 2003 : 14:46:10
|
Hope somebody can help me out.. I've got Mike's File attachment up and going fine, but I want to use it to upload large files. I changed the line in outputFile.asp from: "If allowFile and byteCount <= 80000 Then" to just: "If 1 = 1 Then" since I want my users to be able to post any file type of any size (and 'allowFile' is just given the value "true"). The file will begin to upload, but craps out at around 90Kb. Then I just get the HTTP 500 - Internal server error page. The file I was trying to upload was about 600kb, if that matters. So what do you think - how can I fix this? Thx
|
|
rabufo
Junior Member
 
Italy
328 Posts |
Posted - 04 December 2003 : 05:26:50
|
If this can help you, I've increased size of updatable file to 8 MB just editing "If allowFile and byteCount <= 80000 Then" to "If allowFile and byteCount <= 8000000 Then"
|
 |
|
miperez
Junior Member
 
Spain
243 Posts |
Posted - 04 December 2003 : 05:39:19
|
Hi.
Why do you make that if (1=1)? If AllowFile is always true, you can just make if(true), if (allowfile) or even remove the if ... end if statement.
Anyway, I use AllowFile to control the extensions, but i do not check the file size (which I do not want to put any limits on). So, my line is just: If AllowFile then
I have been able to upload 2MB files without problem, but I have access to the server through a LAN. Maybe if you are accessing an external server, you are receiving a TimeOut (the proceess is not, well... fast 
¿Could that be the problem? |
Best Regards
Mikel Perez
"Hell is the place where everything test perfectly, and nothing works"
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 04 December 2003 : 10:25:51
|
Large data uploads do not work well with pure asp. You might want to look into getting an upload component. |
|
 |
|
rabufo
Junior Member
 
Italy
328 Posts |
Posted - 04 December 2003 : 11:01:50
|
quote: Originally posted by dayve
Large data uploads do not work well with pure asp. You might want to look into getting an upload component.
can you please suggest one, dayve? |
 |
|
DanaWeatherford
Starting Member
USA
2 Posts |
Posted - 04 December 2003 : 14:29:37
|
Yeah, adding some more zeros to the limit,if (allowfile) then, if 1=1 then, all get the same result. I didn't just remove the if-then statement b/c I didn't want to wade thru all the code looking for any stray "elseif's" or what not. [I'm editing in Notepad ] The timeout idea and the idea that ASP doesn't handle large data uploads sounds more like what's happening than any code problem...so the question then becomes "How can I allow my users to upload large files to the forum?" I'm using the Access 2000 db. It can't be too complicated - I'm no expert programmer. Thanks to all! |
 |
|
miperez
Junior Member
 
Spain
243 Posts |
Posted - 05 December 2003 : 04:52:39
|
WOW, Notepad!!! 
I used that when I started editing pages, but it was a pain. I now use Araneae http://www.araneae.com/, which is a bit more friendly, includes line numbering,...
I'd give it a try, maybe other people can suggest us some other editor. |
Best Regards
Mikel Perez
"Hell is the place where everything test perfectly, and nothing works"
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 05 December 2003 : 05:10:33
|
quote: Originally posted by DanaWeatherford
Yeah, adding some more zeros to the limit,if (allowfile) then, if 1=1 then, all get the same result. I didn't just remove the if-then statement b/c I didn't want to wade thru all the code looking for any stray "elseif's" or what not. [I'm editing in Notepad ] The timeout idea and the idea that ASP doesn't handle large data uploads sounds more like what's happening than any code problem...so the question then becomes "How can I allow my users to upload large files to the forum?" I'm using the Access 2000 db. It can't be too complicated - I'm no expert programmer. Thanks to all!
Ask your host if they have an ASP upload component installed. |
 |
|
netman
Starting Member
2 Posts |
|
|
Topic  |
|