Note: Please report any security issues directly to hello [at] ankit.pl
Describe the bug
When you access this library with another library, like Vimeo/Laravel, the cache dir is not writable.
{"message":"fopen(/var/www/html/storage/app/public/): failed to open stream: Is a directory","context":{"userId":1,"exception":{"class":"ErrorException","message":"fopen(/var/www/html/storage/app/public/): failed to open stream: Is a directory","code":0,"file":"/var/www/html/vendor/league/flysystem/src/Adapter/Local.php:157"}}
If there was a way to set the cache dir outside vendor would be great, it avoid to set another step in deploy.
In the file:/vendor/ankitpokhrel/tus-php/src/Config/server.php, the file cache config is set to vendor folder, its not configurable.
Woul be great to set the cache dir due to server restrictibility.
Setup laravel (with Laravel Nova in my specific case)
Install vimeo/laravel
Try to upload a new video
See error
Expected behavior
Video was uploaded successfully. No error due to unwritable cache folder
Additional context
What I'm trying to do is to upload a new video to vimeo, using the offical vimeo/laravel package.
When I set the owner of the folder to www-data, works fine, but i have to add another deploy step to do so (in the buildspec file to be more exact)
Describe the bug When you access this library with another library, like Vimeo/Laravel, the cache dir is not writable.
{"message":"fopen(/var/www/html/storage/app/public/): failed to open stream: Is a directory","context":{"userId":1,"exception":{"class":"ErrorException","message":"fopen(/var/www/html/storage/app/public/): failed to open stream: Is a directory","code":0,"file":"/var/www/html/vendor/league/flysystem/src/Adapter/Local.php:157"}}
If there was a way to set the cache dir outside vendor would be great, it avoid to set another step in deploy.
In the file:/vendor/ankitpokhrel/tus-php/src/Config/server.php, the file cache config is set to vendor folder, its not configurable. Woul be great to set the cache dir due to server restrictibility.
To something like this:
To Reproduce Steps to reproduce the behavior:
Expected behavior Video was uploaded successfully. No error due to unwritable cache folder
Additional context What I'm trying to do is to upload a new video to vimeo, using the offical vimeo/laravel package. When I set the owner of the folder to www-data, works fine, but i have to add another deploy step to do so (in the buildspec file to be more exact)