-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: set up S3 connector to get presigned PUT URL #439
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
// NOTE: We're using a random folder name to prevent collisions | ||
const folderName = randomUUID() | ||
|
||
return `${siteId}/${folderName}/${fileName}` |
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.
hwy not just use the resource id since it's guaranteed to be unique
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.
Hmm this is the asset itself and it's possible to have multiple images within the same page resource, so will need a more globally unique ID.
1bcdbf1
to
f4f1e5a
Compare
Problem
We don't have a proper S3 connector to handle asset uploading.
Solution
Breaking Changes
Features:
${siteId}/${UUID}/${fileName}
.