A
A
Almik Oh! Give me a guitar2015-09-14 10:05:35
PHP
Almik Oh! Give me a guitar, 2015-09-14 10:05:35

How to upload a large file on a wordpress site?

Hi all!
In general, there was a website on Wordpress, one day I decided to add a huge 44Mb media file. Did not work out. Without hesitation , I
changed the settings to /etc/php5/fpm/php.ini :

upload_max_filesize = 50M
post_max_size = 50M

In the nginx settings, I also
client_max_body_size 100m;
reloaded php-fpm itself along with nginx.
I thought it was all done. But Wordpress, when uploading a large file, displays a message saying that the upload limit is 11MB.
I didn't understand what I did wrong. I will be glad if you tell me how to deal with this

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Romanenko, 2015-09-14
@slimus

Look for such a restriction in the code, maybe you once set it? For example, as described here: wptheming.com/2009/07/upload_max_filesize

O
Optimus, 2015-09-14
Pyan @marrk2

Wordpress limits haven't changed most likely it reads the size of the file and doesn't allow it to be uploaded despite what the server can upload. By the way, as for the server, there the download can be limited not only in size but also in time (timeout).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question