68
Views
4
Comments
Multiple File Upload Widget

For File Uploading using MultipleFileUploadReactive_CW. I am able to give max Number of files in properties. But for example if i give value for max Number of files as 2. I am able to upload file many times in 2 and 2 manner. But in my case. I want to upload just 2 files. If i upload 2 files, the upload icon should be disabled or validation message should pop up with max number is two. 

2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi Ajay Saminathan,

1.Take a variable isvalid and set the default value as true. And assign this variable on the widget visible.

2. Now after uploading check the count of files is greater then two then set isvalid =false. Or you can open the popup as well which is showing error as per your requirement.

3. Don't forget to set the isvalid =true after the submission or reloading the page on the actions.

If it doesn't work try to attach an OML file.

Hope this helps

Thanks

Prince



UserImage.jpg
Annie Bibiana Yesudass

Hi @Prince Aadil Khan Panwar ,
                             Tried the same way but I wasn't able to restrict the number of uploaded files. Attaching the oml file for your reference. 

Thanks Annie.

MutipartUploadSample.oml
2024-05-08 06-29-37
Prince Aadil Khan Panwar

hi @Annie Bibiana Yesudass and @Ajay Saminathan 

I have fixed your oml. check here . if you guys find it appropriate please mark as solution my reply thanks. 


MutipartUploadSamplefixed.oml
2023-11-22 10-51-50
Jozy Sohail

Hi Ajay,

1. Create a local in which you will append your uploaded files in that list

2. then assign the enable property of file upload to filiList.length<3

Attaching an OML for reference.

Hope it helps,

Thanks


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