F
Filament2mo 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
toeknee2mo ago
Because you have set disk tmp-for-tests ?
yoni
yoni2mo ago
no, i don't have that in my config.
Dennis Koch
Dennis Koch2mo ago
Is this the disk in the Livewire config? For temp files
toeknee
toeknee2mo ago
search your files for tmp-for-tests.
Dennis Koch
Dennis Koch2mo ago
Or try clearing your config.
yoni
yoni2mo ago
i cleared my config serveral times. don't find it
toeknee
toeknee2mo 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
yoni2mo 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 Koch2mo ago
What’s the issue? It’s just for testing?
yoni
yoni2mo 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 Koch2mo ago
Is this an issue outside of tests? Can’t you just still select public after defining the new disk?
yoni
yoni2mo ago
yes and I candefine what ever i want it always use this tmp-for-tests disk.
Dennis Koch
Dennis Koch2mo ago
Did you somehow set your environment to testing?! 🤔
yoni
yoni2mo ago
Not that I am aware of.
Want results from more Discord servers?
Add your server
More Posts