679
Views
3
Comments
Restricting file type while uploading.
Question
Application Type
Service

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

UserImage.jpg
vikas sharma
Champion
2022-08-03 04-32-50
Ravi Punjwani

Hi Bharath,

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






2021-08-12 11-00-27
Nordin Ahdi
 
MVP

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.