CDLUC3 / dmptool

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

Increase Upload PDF size to 2MB from 250KB #614

Closed jupiter007 closed 1 week ago

jupiter007 commented 1 week ago

Fixes https://github.com/CDLUC3/dmptool/issues/611 .

Changes proposed in this PR:

Increased file size limit to 2MB in drafts.rb Increase the file size in setup.js to 2MB and updated the instructional text and error text to match Fixed a React bug where we needed to use the React syntax of "htmlFor" Increased the Upload PDF file size from 250KB to 2MB.

Initially we were going to update to 1MB size limit, since the Upload instructions mentioned the size limit was 1MB, but we had a size limit of 250KB in draft.rb.

However, considering the new HTML->PDF generator tends to create larger file sizes, Becky set the new size limit to 2MB.