phoenix_live_view icon indicating copy to clipboard operation
phoenix_live_view copied to clipboard

upload does not accept any new drag&drops after issuing a `:too_many_files` error

Open DaTrader opened this issue 7 months ago • 2 comments

Environment

  • Phoenix version (mix deps): 0.20.17

Actual behavior

The allow_upload/3 config is external, autoload, max_entries: 1

Once a :too_many_files error is issued for trying to upload more files when only 1 is allowed, it no longer accepts any new drag & drops, not event of a single file. It simply sticks to its original :too_many_files error and ignores the new drag & drops.

This only happens in case of a :too_many_files error. Uploading a file by drag & drop after a different error (e.g. :not_accepted, :external_client_failure) works properly.

Expected behavior

Obviously, a new drag & drop upload should be validated and taken into consideration regardless of the previous error.

DaTrader avatar Jul 24 '24 14:07 DaTrader