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
Issue: nhost.storage.upload() requires a file of type File in StorageUploadParams. FIle is not yet introduced in node.js making .upload() only compatible with browsers. - Can't upload files from a serverless function or other node.js servers.
Suggestion:
Introduce an alternative to File in StorageUploadParams that is compatible with Node.js, so that nhost.storage.upload() can be used from a serverless function or any other Node.js environment.
Why?
When you want to generate/modify/check files on the server-side before uploading them to storage.
Sending large files back to the users' browser, only for uploading is not very efficient.
This would make hasura-storage-js compatible with both the backend and frontend. (Other functions like nhost.storage.delete works fine in serverless functions!)
The text was updated successfully, but these errors were encountered:
Issue:
nhost.storage.upload()
requires a file of typeFile
in StorageUploadParams. FIle is not yet introduced in node.js making.upload()
only compatible with browsers. - Can't upload files from a serverless function or other node.js servers.Suggestion:
Introduce an alternative to File in StorageUploadParams that is compatible with Node.js, so that
nhost.storage.upload()
can be used from a serverless function or any other Node.js environment.Why?
hasura-storage-js
compatible with both the backend and frontend. (Other functions likenhost.storage.delete
works fine in serverless functions!)The text was updated successfully, but these errors were encountered: