266
Views
4
Comments
How to restrict user to upload other than .xlsx files..?
Question
Application Type
Reactive

Hello ,

Im developing Reactive web App. i have to restrict the user to upload other than .xlsx files.

only .xlsx file has to upload. if he is trying to upload other file i need to show error message how to achieve this.

Can you please help me here to sort out this problem.


Regards.

2022-08-03 04-32-50
Ravi Punjwani

Hi Leo,

Please have a look at this forum post

https://www.outsystems.com/forums/discussion/54515/reactive-web-check-file-type/


  1. Accept attribute will restrict file types
  2. Additional check for content type or file extension will allow you to display the correct message in case the user manages to upload an unexpected file type.
2022-03-08 06-34-45
swapnil powar

Hi Leo 

You can use String_Split function to extract extension of file.

Provide condition String_Split.List[1].Text.Value="xlsx" in if and provide appropriate message for xlsx file. 

Please refer below snapshot for same.

Hope this will help

Regards,

Swapnil Powar

2025-04-17 05-42-16
Ajit Kurane

Hi Leo,

Here I have answered the same query please refer it.

https://www.outsystems.com/forums/discussion/83594/how-to-upload-upload-files-like-only-pdf-images-word-document/

Here in below condition you just need to add the extension which you want. Only that type of files you will be able to upload.

Also attaching oml file for your reference.

Hope it helps you.

Thanks,

Ajit Kurane.

Upload (1).oml
2025-01-29 14-19-26
ignesiyasloyala M

To this in file upload widget Extended Properties

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