How to retrieve the size of a file being uploaded using a!fileUploadField() sail

How to retrieve the size of a file being uploaded using a!fileUploadField() sail component on sail form and restricts the user to upload a file larger than a certain limit.

Is it correct that document(ri!file, "size") will work only when form is being submitted as document being uploaded is being saved on Appian DMS and not before if sail form is not being submitted

Attached a sail form snippet, need to capture the size being circle on form

Thanks !


OriginalPostID-141769

OriginalPostID-141769

  Discussion posts and replies are publicly visible

Parents
  • @mschmitt: Checked it. You are right about 'uploadedDocumentName' property. Although the properties are limited, it was really helpful to know this. Especially, we need to display the actual file name of uploaded document in a read only grid right after user uploads. Till now we had to take the user out of screen and come back inside to achieve this. This is great .. Thanks for sharing ..
Reply
  • @mschmitt: Checked it. You are right about 'uploadedDocumentName' property. Although the properties are limited, it was really helpful to know this. Especially, we need to display the actual file name of uploaded document in a read only grid right after user uploads. Till now we had to take the user out of screen and come back inside to achieve this. This is great .. Thanks for sharing ..
Children
No Data