Commit afb472e
fix(s3): check both 'Policy' and 'policy' field names in presigned POST
The AWS SDK sends the presigned POST policy field as 'Policy' (capital P),
but the validation code was looking for 'policy' (lowercase). This caused
policy condition validation to be silently skipped for all presigned POST
uploads made via the AWS SDK.
Now checks both 'Policy' and 'policy' for compatibility.
Co-Authored-By: Matej Snuderl <ematej.snuderl@gmail.com>1 parent e6943aa commit afb472e
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
1564 | 1567 | | |
1565 | 1568 | | |
1566 | 1569 | | |
| |||
0 commit comments