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.
Hi Leo,
Please have a look at this forum post
https://www.outsystems.com/forums/discussion/54515/reactive-web-check-file-type/
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
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.
To this in file upload widget Extended Properties