You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 - When I am adding video file(or image) and want to create thumb for that, I am using addMediaConversion method in model that means:
File is uploaded to backend server(php tmp folder), then it's uploading to Amazon S3, than downloading and creating thumb for that.
Is it possible to made all conversions before file will be moved to S3 server?
2 - Media move or copy methods - $media->move($post,'default','s3')
To prevent double downloads I decided to use ->toMediaCollection('default','local') then use move method when all conversions are completed, but copy (and move too) method doesn't copy all data regarding media. it's copy just original file and all addMediaConversion methods are started again.
What I am doing wrong? maybe I did not read documentation good and missed some methods?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, sorry if it will be little stupid but:
1 - When I am adding video file(or image) and want to create thumb for that, I am using
addMediaConversion
method in model that means:File is uploaded to backend server(php tmp folder), then it's uploading to Amazon S3, than downloading and creating thumb for that.
Is it possible to made all conversions before file will be moved to S3 server?
2 - Media
move
orcopy
methods -$media->move($post,'default','s3')
To prevent double downloads I decided to use
->toMediaCollection('default','local')
then usemove
method when all conversions are completed, butcopy
(andmove
too) method doesn't copy all data regarding media. it's copy just original file and alladdMediaConversion
methods are started again.What I am doing wrong? maybe I did not read documentation good and missed some methods?
Beta Was this translation helpful? Give feedback.
All reactions