Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Configuration to get media folder from Flysystem location #23

Open
BrocksiNet opened this issue Mar 1, 2019 · 2 comments
Open

Configuration to get media folder from Flysystem location #23

BrocksiNet opened this issue Mar 1, 2019 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@BrocksiNet
Copy link
Contributor

The idea is to have a backend config where you can tell magento to use flysystem as media storage instead of the local path.

Use case would be for example: A developer team has all the product images from a customer in a S3. Instead of that everybody is downloading the images you just change the config and the frontend will get the images from the s3 instead from local.

@BrocksiNet BrocksiNet added the enhancement New feature or request label Mar 1, 2019
@robin-homberg
Copy link
Contributor

robin-homberg commented Mar 1, 2019

Thank you Björn. But here some stuff to think about:

  1. This would be an awesome feature to be used together with S3. But how to handle this for other Adapters like SFTP ?
    An answer could be to always download the file to the tmp folders in magento, if trying to implement them, but when integrating this it should be taken care about other Flysystem adapters, where you cant access the file directly

  2. If you dont want to hook or plugin a whole lot of core functionality it will be pretty tough to deal with the image paths for product and category images. Some ideas to handle this:

  • Define a new product image type like "flysystem_image" to handle the new functionality
  • synchronize the media folder of magento with the flysystem file storage to provide the same relative paths on both sides

@BrocksiNet
Copy link
Contributor Author

Good point (1). For me it would also be okay to move this feature to the S3 repository.

@robin-homberg robin-homberg added this to the Release 1.0.0 milestone Apr 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants