_Claim attachments submitted through Data Dimensions are limited to a page size of 78"x101". If the page size exceeds that amount, the attachment fails to submit, but the user is not currently notified. The Burial, PCPG, VRE, and 686/674 form need to check for page size and then show an error to the user when they attempt to upload a page that is too large._
See similar work on the 526 here, and they suggest reading the file content and extracting the image dimensions. The 'pdjs-dist' library (already installed) might be used to find a PDF's dimensions.
CAIA approved error message:
Your file can't have a [width/height] larger than [dimension]. Follow the instructions for your device on how to resize the file and try again.
Tasks
[ ] Add page size check to Burial, PCPG, VRE, and 686/674
[ ] Add error message to Burial, PCPG, VRE, and 686/674
Acceptance Criteria
[ ] Burial, PCPG, VRE, and 686/674 check for page size limit
[ ] Burial, PCPG, VRE, and 686/674 display error message if upload exceeds page size limit
Issue Description
_Claim attachments submitted through Data Dimensions are limited to a page size of 78"x101". If the page size exceeds that amount, the attachment fails to submit, but the user is not currently notified. The Burial, PCPG, VRE, and 686/674 form need to check for page size and then show an error to the user when they attempt to upload a page that is too large._
See similar work on the 526 here, and they suggest reading the file content and extracting the image dimensions. The 'pdjs-dist' library (already installed) might be used to find a PDF's dimensions.
CAIA approved error message:
Your file can't have a [width/height] larger than [dimension]. Follow the instructions for your device on how to resize the file and try again.
Tasks
Acceptance Criteria
[ ] Burial, PCPG, VRE, and 686/674 display error message if upload exceeds page size limit