Welcome Guest Search | Active Topics | Sign In | Register

Regarding EO Ajax Uploader Options
Venkat
Posted: Friday, January 30, 2009 7:20:04 AM
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
eo_support
Posted: Friday, January 30, 2009 8:45:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi,

I believe you can do that by setting the uploader's AllowedExtension property.

Thanks!
Venkat
Posted: Monday, February 2, 2009 1:04:08 AM
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
eo_support
Posted: Monday, February 2, 2009 7:36:17 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
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!
Venkat
Posted: Tuesday, February 3, 2009 8:00:25 AM
Rank: Newbie
Groups: Member

Joined: 1/30/2009
Posts: 8
Thanks for your support.

Regards,
Venkatarajan A


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.