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
Additional context
This feature would allow us to save every file as unique using uuidv4() but still retrieve as the filename that was originally uploaded.
The text was updated successfully, but these errors were encountered:
mstephano
changed the title
Upload file with metadata to later download file with "orginialname"
Upload file with metadata to later download file with "orginalname"
Sep 3, 2021
Is your feature request related to a problem? Please describe.
Currently, it seams that passing metadata to storage.put() is not currently implemented in nhost-js-sdk: https://github.com/nhost/nhost-js-sdk/blob/9d3d34c29e4c078abb591fcdc96eee4728c2e5f6/src/Storage.ts#L54
Describe the solution you'd like
I would like to be able to save the "originalname" of the file as metadata so it can be downloaded using that originalname like the example from Hasura: https://hasura.io/blog/building-file-upload-downloads-for-your-hasura-app/.
Currently the header "Content-Disposition" is missing "filename" like in the Hasura example in order to retrieve the file using the "originalname":
hasura-backend-plus/src/routes/storage/get.ts
Line 163 in 2109359
Additional context
This feature would allow us to save every file as unique using uuidv4() but still retrieve as the filename that was originally uploaded.
The text was updated successfully, but these errors were encountered: