Announcement

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

  • How to know uploaded file size when using UploadItem API

    Hi,

    When we are using UploadItem API we need the size of uploaded file before processing. Is their any property to get. If yes please let me know.

    Thanks

  • #2
    This is not consistently available on all browsers, so there is no SmartGWT API to retrieve it.

    For now, we would recommend arranging your code so it does not depend on knowing the file size before file upload begins.

    Comment


    • #3
      Hi Isomorphic,
      Is there a solution for the above issue in new version of SmartGWT 5/6,
      Since i want to restrict the file upload size in client side itself, is there way to restrict?

      Comment


      • #4
        The maxFileSize attribute is automatically checked client-side, before uploading begins. Too large of a file results in a validation error.

        Comment


        • #5
          i want to restrict my own file size ? is it possbile

          Comment

          Working...
          X