Commit 74fdeb0
committed
fix: Add clearer error message for multi-page PDF uploads
AWS Textract synchronous API only supports single-page PDFs.
Multi-page PDFs require async processing via S3.
Detects 'UnsupportedDocumentException' and provides user-friendly
message instead of generic 'unsupported document format' error.1 parent ef29570 commit 74fdeb0
1 file changed
Lines changed: 10 additions & 0 deletions
File tree
- cloudformation/scenarios/localgov-drupal/drupal/web/modules/custom/ndx_aws_ai/src/Service
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
438 | 448 | | |
439 | 449 | | |
440 | 450 | | |
| |||
0 commit comments