Sasha
b540da53ec
feat(storage-*): large file uploads on Vercel ( #11382 )
...
Currently, usage of Payload on Vercel has a limitation - uploads are
limited by 4.5MB file size.
This PR allows you to pass `clientUploads: true` to all existing storage
adapters
* Storage S3
* Vercel Blob
* Google Cloud Storage
* Uploadthing
* Azure Blob
And then, Payload will do uploads on the client instead. With the S3
Adapter it uses signed URLs and with Vercel Blob it does this -
https://vercel.com/guides/how-to-bypass-vercel-body-size-limit-serverless-functions#step-2:-create-a-client-upload-route .
Note that it doesn't mean that anyone can now upload files to your
storage, it still does auth checks and you can customize that with
`clientUploads.access`
https://github.com/user-attachments/assets/5083c76c-8f5a-43dc-a88c-9ddc4527d91c
Implements https://github.com/payloadcms/payload/discussions/7569
feature request.
2025-02-26 21:59:34 +02:00
Sasha
810c29b189
fix!: improve collection / global slugs type-safety in various places ( #8311 )
...
**BREAKING:**
Improves type-safety of collection / global slugs by using `CollectionSlug` / `UploadCollectionSlug` and `GlobalSlug` types instead of `string` in these places:
Adds `UploadCollectionSlug` and `TypedUploadCollection` utility types
This also changes how we suggest to add an upload collection to a cloud-storage adapter:
Before:
```ts
azureStorage({
collections: {
[Media.slug]: true,
},
})
```
After:
```ts
azureStorage({
collections: {
media: true,
},
})
```
2024-11-15 19:33:26 +00:00
Frederic Perron
06da53379a
docs: wrong adapter name fixed ( #6933 )
...
This fixes the name of the adapters which were all using the _Vercel
Blob Storage_ in each of the S3, Azure and Google Cloud Storage adapters
demos.
2024-06-26 19:52:11 -04:00
Elliot DeNolf
5b676c36e5
docs(storage-*): readme fixes
2024-04-29 09:40:39 -04:00
Elliot DeNolf
30afe81462
docs: add docs for all new storage packages
2024-04-25 13:08:32 -04:00
Elliot DeNolf
c23984cac3
feat(plugin-cloud-storage): implement storage packages ( #5928 )
2024-04-22 14:31:20 -04:00