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.
- Copy .env.example to .env and fill out the values by visiting your cloud project's
File Storage
tab. - Run
yarn import-uploads
. This will dry-run by default. Follow prompts. - After verifying every would run properly, run
yarn import-uploads:prod
with the same values