How to identify File size before form submit

Hello All,

We are using fileUploadField() in editable grid to upload a new document and
we want to show the file size of newly uploaded document to be reflected immediately in one of the columns of the grid without submitting the form.

Any help is greatly appreciated.

Thanks,
Sonakshi

  Discussion posts and replies are publicly visible

Parents Reply
  • Thanks Stewart!

    Agree,The file upload component displays the size of the file when you upload it but there is size column in grid to show size of document. After clicking on related action showing document in grid with size that are fetch from DB but user can upload at runtime and need to populate size of newly added document in grid.

    Also, while uploading there is no limitation but there is limitation while sending to third part system(there is validation while sending to external system). Purpose of showing document size in grid is that user can see big documents and can process those document in other system or make it inactive so it wont available for sending.

Children