Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Restrict Fileupload size in SmarGWT component UploadItem

    is it possible to restrict the file size in smartGWT component UploadItem in client side itself rather than doing in server side?

    UploadItem fileItem= new UploadItem(IMAGE);

    note: i know we can do this validation on server side but want to avoid the api call

    #2
    maxFileSize does add a client side validator, as written by Isomorphic in the other thread.

    Best regards
    Blama

    Comment


      #3
      i didn't find api like maxFileSize from uploaditem ..can you post one sample example

      Comment


        #4
        Hi sameen,

        just do it in .ds.xml as attribute. The validator is added on the client side. So no manual checks and no API call (you mean server call, correct?).

        Best regards
        Blama

        Comment

        Working...
        X