Skip to content

Conversation

@atinux
Copy link
Contributor

@atinux atinux commented Dec 12, 2025

This pull request introduces support for specifying access levels ('public' or 'private') when uploading blobs, with initial implementation for S3 and partial handling for other drivers. It updates the documentation, types, and driver logic to accommodate this feature, while ensuring backward compatibility and providing clear warnings or errors for unsupported configurations.

Access Level Support for Blob Uploads

  • Added an access field to BlobPutOptions and BlobMultipartOptions types, allowing users to specify 'public' or 'private' access when uploading blobs. [1] [2]
  • Updated documentation (docs/content/docs/2.features/0.blob.md) to describe the new access option, noting that only the S3 driver currently supports it.

S3 Driver Enhancements

  • Implemented support for the access option in the S3 driver: setting 'public' adds the appropriate ACL header (x-amz-acl: public-read) to make the blob public.
  • Adjusted S3 driver configuration logic to better handle optional endpoint and region settings, improving compatibility with S3-compatible services. [1] [2]

Other Driver Handling

  • For Cloudflare R2, added a warning if the access option is used, indicating that access level is not supported and will be ignored.
  • For Vercel Blob, added an error if 'private' access is requested, as this is not yet supported.

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
playground 76dc4c7 Commit Preview URL

Branch Preview URL
Dec 12 2025, 12:45 PM

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 12, 2025

npm i https://pkg.pr.new/@nuxthub/core@709

commit: 76dc4c7

@atinux atinux merged commit 03cc324 into main Dec 12, 2025
10 checks passed
@atinux atinux deleted the feat/blob-access branch December 12, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants