You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: sanitize filenames in storage adapters (#15746)
### What
Adds filename + prefix sanitization to all storage adapters (S3, GCS,
Azure, R2).
### Why
Storage adapter uploads pass filenames directly to
`path.posix.join(prefix, filename)` without sanitization. Regular
uploads don't have this issue because they go through
`generateFileData`, which already sanitizes filenames via the
`sanitize-filename` package. This brings storage adapter filename
handling in line with the rest of the upload pipeline.
### How
Exported `sanitizeFilename` from `payload` to reuse in the storage
adapters.
#### Testing
Added tests to `test/storage-s3/clientUploads.int.spec.ts`
0 commit comments