37
Views
6
Comments
Solved
[Reactive Multiple File Upload] When the initial value of "IsEnabled" is False, an error occurs when trying to upload
multiple-file-upload-reactive
Reactive icon
Forge asset by José Pedro Proença
Application Type
Reactive

As the title says.

Naturally, since IsEnabled=False, the file should not be uploaded and the process should be skipped, but the error shown in the attached image occurs. If the initial value of "IsEnabled" is True as in the demo and then changed to False, no error occurs.

I think this is a bug, so I would appreciate it if you could fix it.


2019-01-07 16-04-16
Siya
 
MVP
Solution

MultipleFileUpload uses the FileUpload block. Therefore, do not modify the MultipleFileUpload block. Instead, add OnReady in FileUpload and call the OnParametersChanged screen action.


2024-06-30 04-29-36
Priya Jhode

Hi, @Yuichi Igarashi 

I have attached the logics in the OML 

This will help you,

Thanks


MultipleFileUpload.oml
2019-03-07 05-12-49
Yuichi Igarashi

Hi Priya-san,

Your implementation does not reproduce the problem correctly.
The problem occurs when the Default Value of IsEnabled is False.

The problem occurs in MultipleFileUpload.

The image above is a capture of your implementation.

2019-01-07 16-04-16
Siya
 
MVP

There is a bug in MultipleFileUploadReactive_CW. The OnParametersChanged action only fires when the input parameter changes. If you initialize the block with IsEnabled set to false, this action will not be called, causing the file upload control to remain enabled even though it appears disabled.

To fix this, add an OnReady event handler in FileUpload and invoke OnParametersChanged inside it.

2019-03-07 05-12-49
Yuichi Igarashi

Hi Siya-san,

It seems that MultipleFileUpload does not have OnParametersChanged, so is it correct to copy the implementation of OnParametersChanged from FileUpload?

2019-01-07 16-04-16
Siya
 
MVP
Solution

MultipleFileUpload uses the FileUpload block. Therefore, do not modify the MultipleFileUpload block. Instead, add OnReady in FileUpload and call the OnParametersChanged screen action.


2019-03-07 05-12-49
Yuichi Igarashi

I understand. Thank you.

I was able to temporarily avoid the error. However, since it is a "Trusted" app, I would like the developer to fix it in the form of a version update.

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