Results 1 to 4 of 4

Thread: ASP page timeout

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    Dear all,
    I have an asp page that is used for uploading a file. When I try to upload large files the ASP script times out.
    Is it possible to set the script timeout property via Server.ScriptTimeout or are there some issues in it. Also how do I decide on what should be the maximum timeout to be set.Any ideas suggestions. Thanks in advance.

  2. #2
    Guest
    Yes, you can set the script timeout with Server.ScriptTimeout = x. (in seconds)

    However, x can never be lower than the ASP Script Timeout set in the application configuration dialog box through ISM.

    As far as knowing how long to set the maximum timeout, that is generally trial and error. There are a few things that can affect upload time (user's connection speed, file size, traffic on your site, etc.).

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    since this threa is abt uploading files, thought Id ask my question here as well.....I need to upload only images(jpegs and gifs)....how do I check if the file being uploaded is a valid image file?

    Thanx for any ideas.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    Dear Rammy,
    Well the only simple way to do this is to check the extension file name in client side scripting. Before uploading the file just check the file extension.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width