Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Mikes File Attachment Mod - file size prob
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

DanaWeatherford
Starting Member

USA
2 Posts

Posted - 03 December 2003 :  14:46:10  Show Profile
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  Show Profile
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"


Go to Top of Page

miperez
Junior Member

Spain
243 Posts

Posted - 04 December 2003 :  05:39:19  Show Profile
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"
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 04 December 2003 :  10:25:51  Show Profile  Visit dayve's Homepage
Large data uploads do not work well with pure asp. You might want to look into getting an upload component.

Go to Top of Page

rabufo
Junior Member

Italy
328 Posts

Posted - 04 December 2003 :  11:01:50  Show Profile
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?
Go to Top of Page

DanaWeatherford
Starting Member

USA
2 Posts

Posted - 04 December 2003 :  14:29:37  Show Profile
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!
Go to Top of Page

miperez
Junior Member

Spain
243 Posts

Posted - 05 December 2003 :  04:52:39  Show Profile
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"
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 05 December 2003 :  05:10:33  Show Profile  Visit HuwR's Homepage
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.
Go to Top of Page

netman
Starting Member

2 Posts

Posted - 30 March 2004 :  23:17:10  Show Profile
If you are running on a Microsoft server you will need to edit the metabase.xml file.

See http://www.dmxzone.com/showDetail.asp?TypeId=7&NewsId=5424

If you need info on editing the metabase.xlm while it is still running see http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/mb_ewr_aboutewr.asp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07