how can add validation for uploading files
Question
Application Type
Reactive

Hello

how can add validation for uploading files allow to upload( pdf, png and jpg) only

as like  attachment oml

Upload.oml

Please check this oml

Upload.oml

mvp_badge
MVP

Hi,

You can check https://www.outsystems.com/forge/component-overview/7202/file-type-file-extension for example.

It's quite possible this question has been already raised, so you could look for those as well.


Good luck!

Hi,

You can add filter by filetype of uploaded Images in your upload action, 

Hope this helps,

Kind Regards,

Komal

Hi Andrew,

I create demo application please check is it work for you or not.

https://samiksha-manekar.outsystemscloud.com/Validationonupload/validation?_ts=637545444960889598

I also attached .oml.

hope it's work for you.

thanks

Please find this oml.

Validationonupload.oml

in this demo you do not have an entity

Here i am just giving you demo ....how you can add.

Iet me check your oml


Please check this oml

Upload.oml

Thanks Andrew :)

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