You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use async and automatic upload and wanted to use the onError config option to trigger the validation, if a file isn't properly uploaded. It's important, so the customer realizes, that something is wrong more prominently (css adjustments) and is not able to submit the form.
On resolution of these errors (retry/change to correct filesize/...) we want to pass the validation. onComplete seemed perfect for that, unfortunately though, it is triggered on every upload try. It doesn't matter if it's successful or not. Even an unsuccessful retry, will trigger onComplete.
I believe it to be caused by our usage of the async and automatic upload.
As the documentation states
Callback fired after all files were uploaded
I expect onComplete only to trigger, if all files have been uploaded successfully.
The text was updated successfully, but these errors were encountered:
We use async and automatic upload and wanted to use the
onError
config option to trigger the validation, if a file isn't properly uploaded. It's important, so the customer realizes, that something is wrong more prominently (css adjustments) and is not able to submit the form.On resolution of these errors (retry/change to correct filesize/...) we want to pass the validation.
onComplete
seemed perfect for that, unfortunately though, it is triggered on every upload try. It doesn't matter if it's successful or not. Even an unsuccessful retry, will triggeronComplete
.I believe it to be caused by our usage of the async and automatic upload.
As the documentation states
I expect
onComplete
only to trigger, if all files have been uploaded successfully.The text was updated successfully, but these errors were encountered: