-
-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File Upload #216
Comments
Yep, it will be added soon. It would look like an API endpoint that generates upload URL (to Google Storage Bucket or Amazon S3). The client app would request that URL and upload file(s) directly to cloud storage using mutation {
getUploadURL(filename: "hello-world.jpg", ...)
} await fetch(uploadURL, { method: "PUT", body: file }); Each uploaded file needs to have a unique URL (e.g. by prefixing it with file ID) so it can be permanently cached at the CDN level. And then can be requested directly from google storage by client app(s). For example:
Where Also, it can be complemented with yet another cloud function that can be used to transform uploaded images via URL parameters, similarly to Cloudinary:
FilesReferenceshttps://googleapis.dev/nodejs/storage/latest/File.html#generateSignedPostPolicyV4 P.S.: Join our Discord channel to discuss this feature https://discord.com/invite/bSsv7XM |
Any update on this? Thanks. |
@phpb-com yes, there is |
Do anyone have plan to add file upload feature ?
The text was updated successfully, but these errors were encountered: