CDLUC3 / dmptool

DMPTool version of the DMPRoadmap codebase
https://dmptool.org
MIT License
56 stars 13 forks source link

Add error message to user if they try to upload a PDF above the size limit #612

Open bofstein opened 1 week ago

bofstein commented 1 week ago

Is your feature request related to a problem? Please describe. I recently had an error where it seemed like uploading was not working because the size was over the allowed limit. There was no error messaging to the user about why the page wouldn't advance, and due to a separate issue, the actual limit was below the displayed limit.

Describe the solution you'd like Some sort of messaging when they try to save or advance that the PDF is above the limit, and they need to use a smaller size. Something like these, that shows the limit in the message. If it's easy it's nice to show the size of their file as well, but not required. Can be various places on the page as long as they see it clearly image image

Describe alternatives you've considered There are many possible ways to message the information but not sure what else besides messaging we could do.

Additional context Hopefully it won't come up too much if we have a limit that accepts most DMPs but for the case it does happen we need people to know why so they can fix it