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
{{ message }}
This repository was archived by the owner on Dec 7, 2022. It is now read-only.
I would like to add support for setting metadata, like Content-Type (as third argument to put), and include the file metadata along the file content in response from get* methods (Azure returns it anyway, I suspect other storage providers do that too).
I need that in my application, so that our thumbnail service can properly recognize file formats. There are also some security implications if Content-Type of uploaded file must be ignored (as is always set to default value).
I propose adding third argument to put: put(location: string, content: Buffer | Readable | string, metadata?: FileMetadata) and extending ContentResponse to:
I would like to add support for setting metadata, like Content-Type (as third argument to
put), and include the file metadata along the file content in response from get* methods (Azure returns it anyway, I suspect other storage providers do that too).I need that in my application, so that our thumbnail service can properly recognize file formats. There are also some security implications if Content-Type of uploaded file must be ignored (as is always set to default value).
I propose adding third argument to
put:put(location: string, content: Buffer | Readable | string, metadata?: FileMetadata)and extendingContentResponseto:Possibly also aliasing StatResponse to FileMetadata?