https://github.com/payloadcms/import-uploads-payload-cloud
Utility script to import existing media into payload cloud
https://github.com/payloadcms/import-uploads-payload-cloud
Last synced: 4 months ago
JSON representation
Utility script to import existing media into payload cloud
- Host: GitHub
- URL: https://github.com/payloadcms/import-uploads-payload-cloud
- Owner: payloadcms
- Created: 2023-05-11T20:16:12.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-04T09:27:55.000Z (11 months ago)
- Last Synced: 2025-01-05T23:12:23.439Z (6 months ago)
- Language: TypeScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Payload Cloud Upload Import
Migrate existing uploads from a static directory into Payload Cloud's storage. NOTE: **The records must already exist in the database. This is for moving files from local to Payload Cloud S3 storage**.
## Usage
1. Copy .env.example to .env and fill out the values by visiting your cloud project's `File Storage` tab.
2. Run `yarn import-uploads`. This will dry-run by default. Follow prompts.
3. After verifying every _would run properly_, run `yarn import-uploads:prod` with the same values