lucasantonio's avatar

Livewire filed upload

I have a code that I made and the entire upload process works perfectly on my local machine.

When I put into production and select an image the livewire tries to upload and the upload error.

My code:

        $fileName = Str::slug($data['title']).'.'.$data['thumb_path']->extension();
        $data['thumb_path']->storeAs("public/thumb",$fileName);
        $data['thumb_path'] = "thumb/{$fileName}";
        $data['company_id'] = auth()->user()->company->id;
0 likes
1 reply
lucasantonio's avatar

The problem was the file size, I set the upload_max_filesize and it worked.

Please or to participate in this conversation.