When attaching existing media the custom properties don't get transferred over to the new media.
I thought I could solve this by implementing my own attachCallback, however it always gets passed an UploadedFile, even when using existing media.
Is it feasible to implement an attachExistingCallback etc. that's getting passed the existing Media instance instead of an UploadedFile and utilize spatie's copy method for a default implementation of the callback?
The obvious benefit would be to get full access to the existing media with all attached custom properties, etc.
Additionally that way we could also easily implement moving the files from one collection to another instead of copying them.
When attaching existing media the custom properties don't get transferred over to the new media.
I thought I could solve this by implementing my own
attachCallback
, however it always gets passed anUploadedFile
, even when using existing media.Is it feasible to implement an
attachExistingCallback
etc. that's getting passed the existingMedia
instance instead of anUploadedFile
and utilize spatie'scopy
method for a default implementation of the callback? The obvious benefit would be to get full access to the existing media with all attached custom properties, etc. Additionally that way we could also easily implement moving the files from one collection to another instead of copying them.