faxunil's avatar

Media Library pro MP4 upload issue

Hi! I have a 300MB file to upload MP4 format. It is uploding and at the end is upload failed error message.

If I'm uploading smaller 12 MB file it is uploaded and apperars in the media collection.

The maxupload filesize and max post size is raised top 1024 MB In the config/media-library.php i have also 'max_file_size' => 1024 * 1024 * 1024,

There is no any error in the laravel.log. Any Idea? Thanks Gergely

0 likes
2 replies
idew's avatar
idew
Best Answer
Level 26

What is the error message? Allowed file upload sizes will also depend on your php.ini settings as well as settings in your HTTP server (Nginx, Apache, etc).

In your php.ini file, (find using php --ini command) you'll want to update the following values:

upload_max_filesize = 315M
post_max_size = 315M

If the upload is going to take a long time, you may also need to increase max_execution_time in your php.ini and the timeout setting in your HTTP server config.

You'll have to lookup instructions for your HTTP server.

faxunil's avatar

@idew Hi! Thanks. I have higher values in this settings. But I forgot to tell, I'm using Livewire for the upload. Te problem is the default rule of Livewire 12 MB of max TMP upload. (temporary_file_upload) https://laravel-livewire.com/docs/2.x/file-uploads#configuration It solved my problem :) But found for Valet also this: https://websistent.com/fix-client-intended-to-send-too-large-body-nginx-error/ client_max_body_size; Br. Gergely

1 like

Please or to participate in this conversation.