Topic on Talk:MediaWiki

Jump to navigation Jump to search

File uploading limit???

2
Noopty (talkcontribs)

I need to change the maximum upload file size but its not working with me the upload window shows this

Maximum file size: 2 MB (a file on your computer) Permitted file types: png, gif, jpg, jpeg, doc, xls, mpp, pdf, ppt, xlsx, jpg, tiff, odt, odg, ods, odp.

so i need to make the maximum file upload 150MB i edited the following according to the Manuals in the website Manual:Configuring_file_uploads

\xampp\htdocs\mediawiki\LocalSettings.php

#MaxUploadFiles
$wgUploadSizeWarning = 157286400;
$wgMaxUploadSize = 157286400;

from the \xampp\htdocs\mediawiki\LocalSettings.php file

and

upload_max_filesize = 150M
post_max_size = 150M

from the \xampp\php\php.ini-development file and also in the C:\xampp\php\php.ini-production file i know i am supposed to edit php.ini but these are the php.ini files that i found in the php folder so im not sure if i am editing the right files?

even after making these changes i still get this error Warning: POST Content-Length of 18143113 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

so how can i change the file limit for the upload?

Thanks

Noopty (talkcontribs)

Hello!

im sorry if i was not clear enough in my question but anyway!

i found the solution for whoever has the same problem. so in Xampp the php.ini file is located in xampp/php/php the file is called php without the ini but its the right one. so i opened that up and changed these

upload_max_filesize = 150M post_max_size = 150M

like i mentioned before, so my problem was that i forgot to restart apache in my virtual server! so if you are using xampp go to the xampp control panel and just hit stop then start again and it should work just fine!

hope it helps :)