0

I am using laravel with voyager as the admin panel. I am trying to upload a video through voyager media picker with file size 3GB but every time I do so I get the following message:

File is too big (3015.93MiB). Max filesize: 256MiB.

I changed the upload_max_filesize & post_max_size both to 4G But I still get the same issue.

I tried adding the following lines to .htaccess

php_value upload_max_filesize 4G

php_value post_max_size 4G

Still same issue

I tried amending the php.ini file found in vendor/laravel/sail/runtimes/7.4/php.ini and vendor/laravel/sail/runtimes/8.0/php.ini to the following:

[PHP]
upload_max_filesize = 4G

post_max_size = 4G
variables_order = EGPCS

Still I get the same issue.

I have also created a new file in the public_html directory called .user.ini and here is the content of the file:

upload_max_filesize = 4G

post_max_size = 4G

I still get the same issue.

I am really stuck and have no idea what to do, does anyone have any idea on how to solve this issue?

Omar Osama
  • 21
  • 2
  • Try changing the values to `M` instead of `G` ,`4000M` instead of `4G` and restart your server – Tithira Jul 05 '21 at 03:16
  • Same issue. I furthered my research on how to increase the limit, I found out that there is a dropzone-js file which has a default 256MiB file size upload. But the problem is that I have no idea where to find this file. I searched over all my files but unfortunately I found nothing. – Omar Osama Jul 05 '21 at 11:59

1 Answers1

0

Since this has not been answered yet, i will share some knowledge for future reference for others.

There are a few factors need to consider.

  1. Check your server configs if it allows 4000M of upload (you can test normal file uploading) before proceeding to test the dropzone.js

As some servers (eg: nginx or others) has default values as well, hence they could also be limiting you from uploading large file sizes.

  1. Change the uploading limit values php.ini (which seems that you've done it).
  2. Check the dropzone.js settings in assets folder, as dropzone it has its own configurations.

Do check a possible answer here: Dropzone.js - maxFilesize increase not working

  1. Make sure to increase timeout to few mins on all of the above.

Default timeout is 30sec, which is not enough time if you dont have super fast internet, so need to increase timeout settings for your server, php and also dropzone.js.

Lastly, if all fails, you need to Inspect Element your network when you upload, it should give you an idea what the error is to overcome it.