{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/298","repository_url":"https://api.github.com/repos/spatie/laravel-medialibrary","labels_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/298/comments","events_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/298/events","html_url":"https://github.com/spatie/laravel-medialibrary/issues/298","id":171611292,"number":298,"title":"[Question] Using subfolder on s3 disk","user":{"login":"mahony0","id":2674488,"avatar_url":"https://avatars.githubusercontent.com/u/2674488?v=3","gravatar_id":"","url":"https://api.github.com/users/mahony0","html_url":"https://github.com/mahony0","followers_url":"https://api.github.com/users/mahony0/followers","following_url":"https://api.github.com/users/mahony0/following{/other_user}","gists_url":"https://api.github.com/users/mahony0/gists{/gist_id}","starred_url":"https://api.github.com/users/mahony0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahony0/subscriptions","organizations_url":"https://api.github.com/users/mahony0/orgs","repos_url":"https://api.github.com/users/mahony0/repos","events_url":"https://api.github.com/users/mahony0/events{/privacy}","received_events_url":"https://api.github.com/users/mahony0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-17T09:18:18Z","updated_at":"2016-08-20T19:07:36Z","closed_at":"2016-08-20T19:07:36Z","body":"I didn't come across similar usage yet, but I want to use medialibrary like this way:\r\n\r\n```php\r\n$user->addMedia('user-image.png')->toCollectionOnDisk('avatar', 's3');\r\n\r\n$user->addMedia('user-banner.png')->toCollectionOnDisk('banner', 's3');\r\n```\r\n\r\nthese collections are on the same s3 bucket but need to upload to separate folders as well. It should be stored in \"avatar/user-image.png\" and \"banner/user-banner.png\". This is easy on \"local\" driver with \"root\" value, but don't know how on s3.\r\n"},"comment":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/comments/241217959","html_url":"https://github.com/spatie/laravel-medialibrary/issues/298#issuecomment-241217959","issue_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/298","id":241217959,"user":{"login":"freekmurze","id":483853,"avatar_url":"https://avatars.githubusercontent.com/u/483853?v=3","gravatar_id":"","url":"https://api.github.com/users/freekmurze","html_url":"https://github.com/freekmurze","followers_url":"https://api.github.com/users/freekmurze/followers","following_url":"https://api.github.com/users/freekmurze/following{/other_user}","gists_url":"https://api.github.com/users/freekmurze/gists{/gist_id}","starred_url":"https://api.github.com/users/freekmurze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freekmurze/subscriptions","organizations_url":"https://api.github.com/users/freekmurze/orgs","repos_url":"https://api.github.com/users/freekmurze/repos","events_url":"https://api.github.com/users/freekmurze/events{/privacy}","received_events_url":"https://api.github.com/users/freekmurze/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T19:07:36Z","updated_at":"2016-08-20T19:07:36Z","body":"Perhaps a [`PathGenerator`](https://docs.spatie.be/laravel-medialibrary/v4/advanced-usage/using-a-custom-directory-structure) can help you here."}}
{"actor":{"display_login":"freekmurze"}}