Replies: 1 comment
-
It's going to involve some complex custom code.. Maybe you can fork the S3 plugin and instead of uploading the file to S3 you can first try to match and move it to the correct location. Or you can make the media not required on creation, add an background task to loop over each media item in the bucket, create an Media item without file, move the file in the right location and edit the database fields to point to the correct location. Pro tip: ALWAYS MAKE BACKUPS hahaha |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am in a migration process with an S3 bucket full of images. I have a
Media
with Upload collection. Is there a way to programmatically add existing images from the S3 bucket to Payload Database without reuploading?Beta Was this translation helpful? Give feedback.
All reactions