Skip to content

Pass config metadata to copy/rename#9

Merged
brandonkelly merged 9 commits into2.0from
fix-config-options
Jan 17, 2024
Merged

Pass config metadata to copy/rename#9
brandonkelly merged 9 commits into2.0from
fix-config-options

Conversation

@timkelty
Copy link
Copy Markdown
Contributor

@timkelty timkelty commented May 19, 2023

Description

addFileMetadataToConfig passes object config when uploading, but not when moving or copying.

This means, e.g. with AWS S3, that any metadata written to the object on upload will be lost when renaming or moving an asset

BaseFsInterface::renameFile() and copyFile() don’t (yet) have $config arguments, which we can add in Craft 5. This change still makes sense for Craft 4, as addFileMetadataToConfig still builds the defaults, which is what is most important.

@timkelty timkelty requested a review from brandonkelly as a code owner May 19, 2023 03:01
@timkelty timkelty marked this pull request as draft May 31, 2023 18:15
@timkelty
Copy link
Copy Markdown
Contributor Author

Converting to draft until v5 interface is updated to accept config.

@timkelty timkelty marked this pull request as ready for review January 16, 2024 16:07
@timkelty timkelty marked this pull request as draft January 17, 2024 03:55
@timkelty timkelty marked this pull request as ready for review January 17, 2024 03:55
@brandonkelly brandonkelly changed the base branch from main to 2.0 January 17, 2024 17:15
@brandonkelly brandonkelly merged commit 5429fb7 into 2.0 Jan 17, 2024
@brandonkelly brandonkelly deleted the fix-config-options branch January 17, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants