Commit 9c50f85
committed
feat: add file size validation in content workflow results
- Introduced a constant `MaxResultFileSize` to limit the size of result files to 10MB, preventing potential memory issues.
- Implemented file size checks before reading files in the `ContentWorkflowResults` function, ensuring that files exceeding the limit are handled gracefully with appropriate error messages.
These changes enhance the robustness of the content workflow by preventing excessive memory usage when processing large files.1 parent e120fb9 commit 9c50f85
1 file changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
699 | 702 | | |
700 | 703 | | |
701 | 704 | | |
702 | | - | |
703 | | - | |
| 705 | + | |
704 | 706 | | |
705 | 707 | | |
706 | 708 | | |
707 | 709 | | |
708 | 710 | | |
709 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
710 | 728 | | |
711 | 729 | | |
712 | 730 | | |
| |||
0 commit comments