Steady-Entertainment's avatar

Problems with upload / This driver does not support creating temporary URLs.

0 likes
6 replies
Snapey's avatar

I don't want to go there :)

3 likes
PWParsons's avatar

I just came across the same error and solved it by adding the mime type to temporary_file_upload.preview_mimes in the livewire config file

4 likes
vincent15000's avatar

Hello I have also added the mime type to preview_mimes but this doesn't solve the problem for me.

What did you do exactly ?

1 like
ihernandez's avatar

'temporary_file_upload' => [ 'disk' => null, // Example: 'local', 's3' Default: 'default' 'rules' => null, // Example: ['file', 'mimes:png,jpg'] Default: ['required', 'file', 'max:12288'] (12MB) 'directory' => null, // Example: 'tmp' Default 'livewire-tmp' 'middleware' => null, // Example: 'throttle:5,1' Default: 'throttle:60,1' 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs. 'png', 'gif', 'bmp', 'svg', 'wav', 'mp4', 'mov', 'avi', 'wmv', 'mp3', 'm4a', 'jpeg', 'jpg', 'mpga', 'webp', 'wma', ], ],

I just added 'jpg' and this solved the issue

2 likes
mehdi9500's avatar

I had this problem using spatie / media-library and adding: preservingOriginal() before toMediaCollection() solved my problem.

2 likes

Please or to participate in this conversation.