gridView editmode radupload

Thread is closed for posting
2 posts, 0 answers
  1. bubus
    bubus avatar
    5 posts
    Member since:
    Apr 2007

    Posted 21 Sep 2010 Link to this post

    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? 
  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 24 Sep 2010 Link to this post

    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
Back to Top