PDA

View Full Version : Problem Using asp upload for file size 4 MB


bruce
10-09-2003, 01:12 AM
what is the error?

[b]quote:Originally posted by jjadoon

Hi
I am using the following code:

yr = request.querystring("folder")
qr = request.querystring("quart")

On Error Resume Next

Set Upload = Server.CreateObject("Persits.Upload")
Upload.OverwriteFiles = False
count = upload.savevirtual ("/financials/"&yr&"/")

For Each File in Upload.Files
name = file.filename
response.write name
Next


The problem is that while uploading the file at the end the page gives an error and stops yet the file uploaded never opens. File size is 4 MB I dont know what is the problem. files with less size are uploaded with out any error. Urgent reply will be really appreciated.

Regards
</blockquote id="quote"></font id="quote">

jjadoon
10-09-2003, 06:09 AM
Hi
I am using the following code:

yr = request.querystring("folder")
qr = request.querystring("quart")

On Error Resume Next

Set Upload = Server.CreateObject("Persits.Upload")
Upload.OverwriteFiles = False
count = upload.savevirtual ("/financials/"&yr&"/")

For Each File in Upload.Files
name = file.filename
response.write name
Next


The problem is that while uploading the file at the end the page gives an error and stops yet the file uploaded never opens. File size is 4 MB I dont know what is the problem. files with less size are uploaded with out any error. Urgent reply will be really appreciated.

Regards

jjadoon
10-09-2003, 10:28 AM
discountasp does not show any error description just after 15 minutes of uploading the same file at the end when file is uploaded it give error:

HTTP 500 - Internal server error
Internet Explorer

bruce
10-10-2003, 11:13 AM
Try switch off friendly http error on your browser.

500 error is a generic error.

[b]quote:Originally posted by jjadoon

discountasp does not show any error description just after 15 minutes of uploading the same file at the end when file is uploaded it give error:

HTTP 500 - Internal server error
Internet Explorer




</blockquote id="quote"></font id="quote">

theharmonyguy
10-25-2003, 07:07 AM
The 4MB may have something to do with it. I know with FSO there are limits based on buffer size asir; I believe this also applies to BinaryWrite.