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

Created on 30 Jul 2020  路  3Comments  路  Source: livewire/livewire

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

  • Livewire version: [e.g. 1.3.0]
  • Laravel version: [e.g. 7.22.4]
  • Browser: x (server side)

Most helpful comment

I had this same thing when deploying an app to a Windows server. I ended up defining the following as a workaround:

In config/filesystems.php:

// below disks => local

        'tmp-for-tests' => [
            'driver' => 'local',
            'root' => storage_path('app/livewire-tmp'),
        ],

After which the file upload problems disappeared.

All 3 comments

I had this same thing when deploying an app to a Windows server. I ended up defining the following as a workaround:

In config/filesystems.php:

// below disks => local

        'tmp-for-tests' => [
            'driver' => 'local',
            'root' => storage_path('app/livewire-tmp'),
        ],

After which the file upload problems disappeared.

@axit-joost this is working for me

@axit-joost I guess it would be storage_path('app'), livewire-tmp comes from config/livewire.php option temporary_file_upload.directory

Was this page helpful?
0 / 5 - 0 ratings