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
In the "edit" state, files can be removed, but the invisible file input will still contain them, so with a regular form post, they are still submitted. Programmatically changing the files property will also have no effect on the input. FileUploaderDropContainer should have the same issue.
A note on a potential fix approach:
The input.files property can be set, but FileList objects cannot easily be constructed (at least last time I checked). A common way around this is to use a DataTransfer.
In the
"edit"
state, files can be removed, but the invisible fileinput
will still contain them, so with a regular form post, they are still submitted. Programmatically changing thefiles
property will also have no effect on the input.FileUploaderDropContainer
should have the same issue.REPL demo
A note on a potential fix approach:
The
input.files
property can be set, butFileList
objects cannot easily be constructed (at least last time I checked). A common way around this is to use aDataTransfer
.Related/overlap with:
The text was updated successfully, but these errors were encountered: