-
Notifications
You must be signed in to change notification settings - Fork 58
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
[blob] implement client upload #179
[blob] implement client upload #179
Conversation
🦋 Changeset detectedLatest commit: cac3d94 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
930a4af
to
045b36a
Compare
Once ready, let's ship this as experimental/next tag on npm so we can give a try to the published built package to ensure endpoints and types are correctly working. |
@correttojs Should we allow providing custom metadata at token creation time? When using S3-presigned URLs you can add metadata. Here's why I think we should think about a way to do so: As a customer using this feature for avatar uploads (example), when onUploadCompletedCallbackUrl triggers, then it will contain the url of the avatar. Now as a customer, I'd like to store this url in my database to update the avatar of the right user. To do so I can either:
I propose we allow this:
Thoughts? |
Once we make this right, let's make sure we update the README with an example that uses this feature. With a similar code than the current README example. |
@vvo added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No major review changes, this looks beautiful and will be a tremendous addition to Vercel Blob. Congrats!
Co-authored-by: Vincent Voyer <[email protected]>
Co-authored-by: Vincent Voyer <[email protected]>
Co-authored-by: Vincent Voyer <[email protected]>
Co-authored-by: Vincent Voyer <[email protected]>
bfa9349
to
994711d
Compare
implement client upload
generateClientTokenFromReadWriteToken