Problem Using asp upload for file size 4 MB

Discussion in 'Classic ASP' started by Bruce, Oct 9, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Bruce

    Bruce DiscountASP.NET Staff

    what is the error?

    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">
     
  2. 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
     
  3. 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
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    Try switch off friendly http error on your browser.

    500 error is a generic error.

    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">
     
  5. 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.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page