CDLUC3 / dmptool

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

Issues with PDF upload control #563

Open briri opened 3 months ago

briri commented 3 months ago

We discovered a few issues with the PDF upload portion of the Pilot project pages while investigating issue #562

1) When uploading a file that is not a PDF, the UI is not displaying the error message back to the user. The API responds with: API V3 ERROR: status: bad_request, errors: ["Narrative must be a PDF document"]. The user should be presented with the message so that they know what happened and how to correct the issue.

2) The Rails app is limiting the size of the PDF to 350Kb but the UI indicates that it allows up to 1MB. We should update Rails to be the same.

3) It appears as though the 'Remove PDF' checkbox is not working.