phoenix_live_view
phoenix_live_view copied to clipboard
Not displaying max_entries error when multiple uploads
Environment
- Elixir version (elixir -v): 1.13.1
- Phoenix version (mix deps): 1.7
- Phoenix LiveView version (mix deps): 0.20
- Operating system: Mac 12.7
- Browsers you attempted to reproduce this bug on (the more the merrier): Chrome
- Does the problem persist after removing "assets/node_modules" and trying again? Yes/no: Yes
Actual behavior
https://gist.github.com/dankentfield/719666ede4370ab7a9a6c511a82b0983
- Run the script and go to http://localhost:5001/
- Try uploading 3 files (more then the max_entries)
- You will see 2 succeed and land in uploaded and 1 stays in pending, however I expect there to be a max_entries error message for this one.
- If you continue to upload another file it will succeed and add another file to the uploaded files, which now contains more than the max_entries should
Expected behavior
- Should display the max_entries error when too many files are uploaded (partial success and partial failure).
- It should never upload more than the max_entries.