Skip to content

payloadcms/import-uploads-payload-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Utility script to import existing media into payload cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published