View Single Post
 
Old October 15th, 2006, 11:11 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Rit,

Yes, at that stage the file has already been uploaded completely. You can use the posted file right away.

To see for yourself, you could upload a large file and set a breakpoint in your code where the extension is checked. You'll see that you have to wait for the file to be uploaded before the code breaks.
You can also set a Watch in Visual Studio for FileUpload1.PostedFile. You'll see that in your If check the posted file has a ContentLength that matches the size of your uploaded file.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.