addons-server icon indicating copy to clipboard operation
addons-server copied to clipboard

Use setCustomValidity for File Uploads

Open chrstinalin opened this issue 1 year ago • 0 comments

Fixes: mozilla/addons#15039

Description

  1. Modifies FileFields to use setCustomValidity to check the max file size. image
  2. Use MAX_UPLOAD_SIZE in place of hard-coded constant in version upload.

Checklist

  • [x] Add #ISSUENUM at the top of your PR to an existing open issue in the mozilla/addons repository.
  • [x] Successfully verified the change locally.
  • [ ] The change is covered by automated tests, or otherwise indicated why doing so is unnecessary/impossible.
  • [x] Add before and after screenshots (Only for changes that impact the UI).

chrstinalin avatar Sep 23 '24 18:09 chrstinalin