@nextlyhq/storage-s3 0.0.2-alpha.8 → 0.0.2-alpha.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @nextlyhq/storage-s3
2
2
 
3
- Amazon S3 (and S3-compatible: Cloudflare R2, MinIO, Backblaze B2, Wasabi, DigitalOcean Spaces) storage adapter for Nextly.
3
+ Amazon S3 (and S3-compatible: Cloudflare R2, MinIO, DigitalOcean Spaces) storage adapter for Nextly.
4
4
 
5
5
  <p align="center">
6
6
  <a href="https://www.npmjs.com/package/@nextlyhq/storage-s3"><img alt="npm" src="https://img.shields.io/npm/v/@nextlyhq/storage-s3?style=flat-square&label=npm&color=cb3837" /></a>
@@ -13,7 +13,7 @@ Amazon S3 (and S3-compatible: Cloudflare R2, MinIO, Backblaze B2, Wasabi, Digita
13
13
 
14
14
  ## What it is
15
15
 
16
- Stores Nextly media uploads on Amazon S3 or any S3-compatible object store. R2, MinIO, B2, Wasabi, and DigitalOcean Spaces all work via the same adapter; you do not need separate packages.
16
+ Stores Nextly media uploads on Amazon S3 or an S3-compatible object store. Cloudflare R2, MinIO and DigitalOcean Spaces all work via the same adapter; you do not need separate packages.
17
17
 
18
18
  > **You do not need this for development.** Nextly's default storage is local disk under `./public/uploads/`. Install this when you are ready to move uploads to a cloud object store, typically for production deployments.
19
19
 
@@ -101,6 +101,8 @@ s3Storage({
101
101
  });
102
102
  ```
103
103
 
104
+ With `clientUploads`, the browser asks for a pre-signed URL with the file's name, type and exact size. Nextly checks them first (name, extension, type allowlist, size; never an SVG), and the URL binds the type and the exact size, so S3 refuses any other file. It binds the configured `cacheControl` too, so a direct upload is cached as a server upload is: send every header in the response's `headers`, as it is (a bucket CORS rule that lists its allowed headers must allow `content-type` and `cache-control`). The bytes themselves don't pass through Nextly, so their content is not checked.
105
+
104
106
  ## Main exports
105
107
 
106
108
  - `s3Storage`: plugin factory for `defineConfig.storage`
@@ -109,11 +111,11 @@ s3Storage({
109
111
 
110
112
  ## Compatibility
111
113
 
112
- | Tool | Version |
113
- | -------- | ----------------------------------------------------------------------- |
114
- | Node.js | 20+ |
115
- | `nextly` | 0.0.x |
116
- | Stores | AWS S3, Cloudflare R2, MinIO, Backblaze B2, Wasabi, DigitalOcean Spaces |
114
+ | Tool | Version |
115
+ | -------- | ------------------------------------------------- |
116
+ | Node.js | 22.12+ or 24+ |
117
+ | `nextly` | 0.0.x |
118
+ | Stores | AWS S3, Cloudflare R2, MinIO, DigitalOcean Spaces |
117
119
 
118
120
  ## Documentation
119
121