How to generate/keep responsive images when moving/copying media #2315
Unanswered
LowSociety
asked this question in
Q&A
Replies: 0 comments
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 have an app where users can upload images in a form. When an image is added to the form, it is instantly uploaded and added to a
temp
collection tied to that user. When the form is submitted the media is moved to the model associated with the form. I do this with themove
method on the media. Now I want the new media to include responsive images but I can't seem to find a way to generate them, since I don't have access to theFileAdder
instance created internally in thecopy
method of theMedia
model. Is there another way? Note that I don't want to generate responsive images on a conversion, soregisterMediaConversions
on the new model is not an option.Looking at the
copy
method I'm wondering if it shouldn't generate/copy the responsive images if the original modelhasResponsiveImages
?Beta Was this translation helpful? Give feedback.
All reactions