Hello,
I would like to know to filename in the uploading event to prevent the upload of it according to some rules.
For instance, in the Uploaded handler, I used e.UploadProgress.CurrentFile but this value is null in the Uploading handler.
Is there another handler to use, or another propertie to use ? I haven't found one.
Thanks you,
Stéphane
Stephane
6/23/2010 7:10 AM
Hi Stéphane,
Note that there are 3 different upload methods: Browser, Ajax and Flash.
For medium-trust compatibility, in v2.0 we modified Browser and Flash methods to use ASP.NET's default upload mechanism. For this reason, file information will not be available until it's completely received by the server.
However if you use Ajax upload method, our own upload module will be used (requires Full-Trust) and file information should be available in Uploading handler.
We may find ways to make file information available with other methods in future versions.
Cem Alacayir
7/23/2010 4:43 AM