Closed mmg-mike closed 2 years ago
Hi @lbz-life ,
the FileReceiver is full injectable so it is not possible do it this way. For this a config were you can change storage.
In filesystems.php make a new entry in disks
:
'mychunksfolder' => [
'driver' => 'local',
'root' => storage_path('app'),
'visibility' => 'public',
],
Then in your config (like this file) change the storage.disk
option with the name you have chosen
@pionl thank you for the reply. This makes sense and I can now see in the documentation where this is outlined. I was looking at things a little different, so I'm guessing that is why I glossed right over it.
@lbz-life any hints were the docs can be improved?
I've looked through docs and examples and I don't see a way to change the chunk directory location. I think it should be done when you instantiate
FileReceiver
, but I've tried many different ways and keep getting errors. Here's what my code looks like:UploadController.php
Error
The error indicates clearly that I should not pass a string, but I'm not sure what to put here instead?
I'd be glad to PR this into the docs once I understand how to do it properly.