PDA

Click to See Complete Forum and Search --> : ASP page timeout


msdnexpert
Dec 27th, 2000, 09:59 PM
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.

Dec 28th, 2000, 08:03 AM
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.).

rammy
Jan 2nd, 2001, 05:58 AM
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.

msdnexpert
Jan 2nd, 2001, 08:18 AM
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.