Server side validation before upload.

Last post 09-24-2009, 11:26 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  09-24-2009, 10:28 AM 55837

    Server side validation before upload.

    Hi all,
     
    This post is more a feedback, than a question.
     
    I was really surprised, that upload control doesn't have any server side validation before upload, only client side. I was forced to use AJAX callback in order to emulate  this functionality.
     
    IMO, it makes sense to add  such an event, especially it doesn't seems to be hard to implement.

    Regards,
    Michael Raizman
  •  09-24-2009, 11:26 AM 55853 in reply to 55837

    Re: Server side validation before upload.

    Hi,
     
    Developer can use client side Javascript and the FileValidating event at the sametime.
     
    If server prepair enough meta data to client side , the invalid item can be cancelled by javascript easily.
     
    And the FileValidating event is just for double check and prevent some hackers skip the javascript step.
     
    That solution can implement most of the validation tasks.
     
     
    Of cause you may need check the FileName or FileSize by ONLY-SERVER-LOGIC,
     
    But we do not plan to add that server event ,
     
    Just do not want to access the server too many times.
     
    If more advanced developer ask that request, we'd like to provide samples instead buildin function.
     
     
    Thank you.
     
    Regards,
    Terry
     
View as RSS news feed in XML