Commit 1f49b21
committed
Fix file upload size limit for large media files
The request size middleware was applying a 10MB limit to all requests
including multipart file uploads. This caused uploads of larger media
files (like 17MB MP4s) to fail with "No file provided" error.
Fixed by detecting multipart/form-data Content-Type and applying the
maxFileSize (5GB) limit for file uploads instead of the smaller
maxRequestBodyMB limit.1 parent 4fe5fc1 commit 1f49b21
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
318 | 326 | | |
319 | 327 | | |
320 | 328 | | |
| |||
0 commit comments