for a customers project we need to import a lot of product images (500000+) which will end up in the images folder. That would not work for us.
We would like to change the behaviour to use subfolders dependent on the product id or some other key to have folders like images/01/33/46/imagename.jpg
I guess this needs to be done in the NopFileProvider, so how can i use a custom one instead of the NopFileProvider?
This is a json serialized list of external (azure blob) urls. This means you only need to override some parts (upload, read/...) and not create a complete new NopFileProvider class
Found the right solution for me with creating a plugin to extend the PictureService, add a new dependency with a high order and then overriding the methods which are responsible for creating the directory name. Saving files via the standard picture service works as well as images showing up in frontend an admin: