F
Filament8mo ago
yoni

Disk [tmp-for-tests] does not have a configured driver.

I'm not sure why, but the filament is using this drive instead of the public drive. I specified it in the upload field with ->disk('public'), but that doesn't work either.
14 Replies
toeknee
toeknee8mo ago
Because you have set disk tmp-for-tests ?
yoni
yoniOP8mo ago
no, i don't have that in my config.
Dennis Koch
Dennis Koch8mo ago
Is this the disk in the Livewire config? For temp files
toeknee
toeknee8mo ago
search your files for tmp-for-tests.
Dennis Koch
Dennis Koch8mo ago
Or try clearing your config.
yoni
yoniOP8mo ago
i cleared my config serveral times. don't find it
toeknee
toeknee8mo ago
GitHub
Disk [tmp-for-tests] does not have a configured driver. · Issue #13...
Description I have the temporary_file_upload => disk specified. But I still get the error with uploading: Disk [tmp-for-tests] does not have a configured driver.. Steps to reproduce Context Live...
yoni
yoniOP8mo ago
i did this but how can i save this to the public folder and not the resource folder? without symlink
'tmp-for-tests' => [
'driver' => 'local',
'root' => public_path(),
'throw' => false,
],
'tmp-for-tests' => [
'driver' => 'local',
'root' => public_path(),
'throw' => false,
],
Dennis Koch
Dennis Koch8mo ago
What’s the issue? It’s just for testing?
yoni
yoniOP8mo ago
No, it doesn't take the public disk but it takes this 'tmp-for-tests'. After adding this in the filesystems config it works but now i want to save the images in the public folder and not in the resource folder.
'tmp-for-tests' => [
'driver' => 'local',
'root' => public_path(),
'throw' => false,
],
'tmp-for-tests' => [
'driver' => 'local',
'root' => public_path(),
'throw' => false,
],
Dennis Koch
Dennis Koch8mo ago
Is this an issue outside of tests? Can’t you just still select public after defining the new disk?
yoni
yoniOP8mo ago
yes and I candefine what ever i want it always use this tmp-for-tests disk.
Dennis Koch
Dennis Koch8mo ago
Did you somehow set your environment to testing?! 🤔
yoni
yoniOP8mo ago
Not that I am aware of.
Want results from more Discord servers?
Add your server