The file gets uploaded. I just can't immediately follow the upload code
with a make
Thumbnail function since apparently the uploaded file is either not fully
loaded or listed in the file structure of the server at that time.
I think I have solved the problem, though, by adding the following code
right after the upload code.
Dim fi As New System.IO.FileInfo(Server.MapPath(".") & "\Photos\" &
FileUpload1.FileName)
Do While fi.Exists = False
'do nothing
Loop
"Patrice" <a@bc.c> wrote in message
news:Ov**************@TK2MSFTNGP11.phx.gbl...
You shouldn't have to worry about this. I believe you have some kind of
problem making you think that the file is not uploaded yet but this is
likely not the problem you have...
What have you seen exactly ?
--
Patrice
"William LaMartin" <la******@tampabay.rr.com> a écrit dans le message de
news:eA*************@tk2msftngp13.phx.gbl... I have a VB ASP.Net application where the user can upload a file using
the
FileUpload server control. I also want a thumbnail to be created for
this
file. Unfortunately I can see no means to determine when the file upload
is complete so that I can use the MakeThumbnail function as part of the
code.
My current workaround is to supply an addition button the users can click
on when they think the upload is done that will find the uploaded file and
make the thumbnail.
Is there a way to determine when the upload is complete?