-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magento loads the media files on the server and in s3 #30
Comments
@ayalamauric what do you mean by theme and catalog folders. If you mean, pub/static directory, then keep in mind that this extension only works for media. Static content will not be synced with AWS S3. If you mean catalog folders in pub/media, then nothing will go wrong. I want Magento not to download files to the file system, how can I configure the static media URL to point to S3? Once you install this extension and configure it correctly using your S3 keys, then it should automatically pull media from S3. No need to do any additional configuration, unless you also want to set up CDN for media delivery. |
Hey @ayalamauric. Did you manage to solve this downloading images on server issue? |
@thaiphan, @pranavgaikwad The ISSUE is aroundSaveFileToFilesystem and return $subject->getStorageFileModel()->saveFile($file->getData(), true); Why do you want to save file from S3 to local media storage?! |
Reviving this issue because I am having what I believe to be the same issue as the OP. The images are still being uploaded and stored into my pub/media folder. Thank you! |
Hi @thaiphan , I had no problems installing the extension, in fact, the images are loaded in the bucket of s3, but also loaded on the server, something I want to avoid with this extension.
I installed something wrong? Or the extension works like this?
I upload the logs:
`ubuntu@magento:/var/www/html/nuevo$ sudo php bin/magento s3:storage:export
You are already using S3 as your media file storage backend!
ubuntu@magento:/var/www/html/nuevo$ sudo php bin/magento s3:storage:enable
You are already using S3 as your media file storage backend!
ubuntu@magento:/var/www/html/nuevo$ sudo /etc/init.d/apache restart
sudo: /etc/init.d/apache: command not found
ubuntu@magento:/var/www/html/nuevo$ sudo /etc/init.d/apache2 restart
[ ok ] Restarting apache2 (via systemctl): apache2.service.
but
What happens if I delete the theme and catalog folders from the ssh? How do I know if the images are loaded from s3?
I want Magento not to download files to the file system, how can I configure the static media URL to point to S3?
The text was updated successfully, but these errors were encountered: