Hi All ,Here I wanted to restrict the particular file types while uploading the file .In my application currently it's taking all file types and I want only txt , jpeg ,png, .docx, pdf and excel file types .
Any Ideas would help
Thanks & Regards Bharath M
Hi Bharath,
Please refer this post : https://www.outsystems.com/forums/discussion/83594/how-to-upload-upload-files-like-only-pdf-images-word-document/
I have almost same use case.
regards
You will have a filename when you receive the uploaded file. You can do the validations manually with different file types.
Alternately you can use these forge components to use an existing logic built by someone else.
https://www.outsystems.com/forge/component-overview/7202/file-type-file-extension
https://www.outsystems.com/forge/component-overview/6600/file-extension
Hi Barath,
It depends on whether you want to validate the uploaded file type inside a Traditional Web or Reactive Web application.
For TWA check out this article:
For RWA refer to this post:
Hope this helps.
Regards,
Nordin