barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 171 forks source link

multiple directories in cloud storage #255

Closed usernameunknown9999 closed 5 years ago

usernameunknown9999 commented 5 years ago

I understand that multiple roots can be created by doing such as the link below

https://github.com/Studio-42/elFinder/wiki/Multiple-roots

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.

Is there anyway that could achieve this?

This is how my config looks like

 'disks' => [
       env('FILESYSTEM_CLOUD', 'local')=>[
             'alias' => 'Cloud Storage',
             'path' => 'editor-images'
         ],
     ],