{"id":26743847,"url":"https://github.com/eduhdev12/p-storage-s3","last_synced_at":"2025-09-18T22:54:37.412Z","repository":{"id":282692730,"uuid":"949374284","full_name":"eduhdev12/p-storage-s3","owner":"eduhdev12","description":"Hot fix for payloadcms storage","archived":false,"fork":false,"pushed_at":"2025-03-16T10:12:44.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T07:16:33.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eduhdev12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-16T10:10:37.000Z","updated_at":"2025-03-16T10:12:47.000Z","dependencies_parsed_at":"2025-03-16T11:23:00.578Z","dependency_job_id":"20cbfbb7-de89-4794-987e-b979c0251c8f","html_url":"https://github.com/eduhdev12/p-storage-s3","commit_stats":null,"previous_names":["eduhdev12/p-storage-s3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eduhdev12/p-storage-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduhdev12%2Fp-storage-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduhdev12%2Fp-storage-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduhdev12%2Fp-storage-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduhdev12%2Fp-storage-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduhdev12","download_url":"https://codeload.github.com/eduhdev12/p-storage-s3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduhdev12%2Fp-storage-s3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262847449,"owners_count":23374005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-28T07:16:36.831Z","updated_at":"2025-09-18T22:54:32.385Z","avatar_url":"https://github.com/eduhdev12.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# S3 Storage for Payload\n\nThis package provides a simple way to use S3 with Payload.\n\n**NOTE:** This package removes the need to use `@payloadcms/plugin-cloud-storage` as was needed in Payload 2.x.\n\n## Installation\n\n```sh\npnpm add @payloadcms/storage-s3\n```\n\n## Usage\n\n- Configure the `collections` object to specify which collections should use the AWS S3 adapter. The slug _must_ match one of your existing collection slugs.\n- The `config` object can be any [`S3ClientConfig`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3) object (from [`@aws-sdk/client-s3`](https://github.com/aws/aws-sdk-js-v3)). _This is highly dependent on your AWS setup_. Check the AWS documentation for more information.\n- When enabled, this package will automatically set `disableLocalStorage` to `true` for each collection.\n- When deploying to Vercel, server uploads are limited with 4.5MB. Set `clientUploads` to `true` to do uploads directly on the client. You must allow CORS PUT method for the bucket to your website.\n\n```ts\nimport { s3Storage } from '@payloadcms/storage-s3'\nimport { Media } from './collections/Media'\nimport { MediaWithPrefix } from './collections/MediaWithPrefix'\n\nexport default buildConfig({\n  collections: [Media, MediaWithPrefix],\n  plugins: [\n    s3Storage({\n      collections: {\n        media: true,\n        'media-with-prefix': {\n          prefix,\n        },\n      },\n      bucket: process.env.S3_BUCKET,\n      config: {\n        credentials: {\n          accessKeyId: process.env.S3_ACCESS_KEY_ID,\n          secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n        },\n        region: process.env.S3_REGION,\n        // ... Other S3 configuration\n      },\n    }),\n  ],\n})\n```\n\n### Configuration Options\n\nSee the the [AWS SDK Package](https://github.com/aws/aws-sdk-js-v3) and [`S3ClientConfig`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3) object for guidance on AWS S3 configuration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduhdev12%2Fp-storage-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduhdev12%2Fp-storage-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduhdev12%2Fp-storage-s3/lists"}