This repository was archived by the owner on Apr 29, 2019. It is now read-only.
This repository was archived by the owner on Apr 29, 2019. It is now read-only.
Images imported via URL have crazy file paths #57
Closed
Description
From @hgpit on June 28, 2016 9:22
Steps to reproduce
- Install Magento v2.1 EE.
- Import product CSV using URLs for images (i.e.: base_image: "http://datastore.mydomain.local/imageserver/40354768_big.jpg").
Expected result
- File is stored in Magento file system as [magento]/pub/media/catalog/product/4/0/40354768_big.jpg.
Actual result
- File is stored in Magento file system as [magento]/pub/media/catalog/product/h/t/httpdatastore.mydomain.localimageserver40354768_big.jpg
When importing hundreds of thousands of products/images you end up with literally hundreds of thousands of files just under one folder: [magento]/pub/media/catalog/product/h/t/. So the file distribution logic of directory hierarchy creation based on the first two characters of the filename is futile/wasted - as the files will always be stored under /h/t/.
We are concerned that this could lead to speed issues accessing the /h/t/ folder. Certainly FTPing to the folder from a remote system could cause the FTP clients to hang (or stall for a long period).
Thank you
Copied from original issue: magento/magento2#5306