|
Rank: Newbie Groups: Member
Joined: 1/30/2009 Posts: 8
|
Hi, I'm working on the EO Ajax Uploader. Is there any way to validate the file, before uploading? I can only see the FileUploaded event. I want to restrict the user uploading the file with specific extension like .vbs, .vba etc. Even though we have a client side validation using the attributes AllowedExtension, I want to do the same validation in Server Side code as well. Any help is hugely appreciated. Thanks in advance.
Regards, Venkatarajan A
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I believe you can do that by setting the uploader's AllowedExtension property.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/30/2009 Posts: 8
|
Thanks for the info. But that works on a client side. But I need to validate the file in the server side code like C# in my ASP.NET page. Is there a way to do that?
Regards, Venkatarajan A
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
In the server side you will have to wait until the file is uploaded and then reject it if you do not like the extension. The server side won't know anything about the file until it is fully uploaded.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/30/2009 Posts: 8
|
Thanks for your support.
Regards, Venkatarajan A
|
|