I would like to upload image to particular folder depends on which editor it uploads to. For example, if the image is uploaded from an article editor, I would like the image to be uploaded to path editor-images/articles whereas if the image is uploaded from a product editor, I would like the image to be uploaded to path editor-images/products.
I understand that multiple roots can be created by doing such as the link below
I would like to upload image to particular folder depends on which editor it uploads to. For example, if the image is uploaded from an
article editor
, I would like the image to be uploaded to path editor-images/articles whereas if the image is uploaded from aproduct editor
, I would like the image to be uploaded to path editor-images/products.Is there anyway that could achieve this?
This is how my config looks like