This is a migrated thread and some comments may be shown as answers.

gridView editmode radupload

1 Answer 65 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
bubus
Top achievements
Rank 1
bubus asked on 21 Sep 2010, 10:58 PM
I have a radupload in a gridview edit form template and I've set the allowed file extensions in the properties window as well as set them in the validating file event method.  I also have a radupload in a form on my page outside of the grid and I don't think the allowed file extensions property worked correctly with that one either but it didn't matter because I have java script that I use in a custom validator  that took care of that along with making the upload a required field.  Do I have to have java script and the custom validator to have the allowed file extensions property to work or should I just have to set the files to be allowed in the property window? 

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 24 Sep 2010, 12:46 PM
Hi bubus,

What made you think the the integrated upload validation is not working?  When you add the allowed extension the AllowedFileExtensions all uploaded files are checked against them and the valid files are put in the UploadedFiles collection and the invalid files in the InvalidFiles one. In general it is recommended to have both server and client-side validation because the client-side validation can be easily tricked.

Kind regards,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Upload (Obsolete)
Asked by
bubus
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or