Artur Wierzbicki
|
cc4473faf3
|
Storage: validation and sanitization stubs (#50523)
* add `IsPathValidationError` util to fs api
* refactor storage.Upload method
* remove unused struct
* extract `RootUpload` constant
* move file validation outside of the service
* Make UploadErrorToStatusCode exported
* validation/sanitization
* refactor pathValidationError check
* refactor, rename sanitize to transform
* add a todo
* refactor
* transform -> sanitize
* lint fix
* #50608: fix jpg/jpeg
Co-authored-by: Tania B <yalyna.ts@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
|
2022-06-15 12:32:29 +04:00 |
|