Manual talk:$wgMaxUploadSize
From MediaWiki.org
hi,
could someone enhance this page?
I just don't understand two things:
- does this variable intend to limit the size of 1 upload, or the whole directory of upload?
- what is the type of the value it must be set to? string as "1024 * 1024 * 100"? integer? representing bytes? MO?
- This is the maximum size of any single image. It is applied at the time of upload, so lowering this value at a later date won't remove existing files that are now 'too large'. The value is the maximum size of the file in bytes. There are 1024 bytes in a kilobyte, and 1024 kilobytes in a megabyte, so 1024 * 1024 * 100 = 100 megabytes. I will factor this into the page. --HappyDog 17:26, 9 April 2007 (UTC)
- So I have an issue, and I can't find any help on it at all. I am using Mediawiki 1.8.2
- In my LocalSettings.php I have $wgMaxUploadSize = 1024*1024*100 #this is equivalent to 100 megs
- When I try to upload a file that is only 2.5 megs, I get the error...
-
This file is bigger than the server is configured to allow.
-
- What am I missing here? --Jakobud 23:47, 29 May 2007 (UTC)
-
- The limitation is not in MediaWiki -- it is in PHP. There is a default upload and post limit of 2MB. See the two links I added to the bottom of the Manual page. -- 165.124.111.179 00:10, 1 June 2007 (UTC)
- Also note that you need to make your memory_limit greater than the upload size in php.ini, too. There is yet another a limit imposed in Apache through the LimitRequestBody directive. That may need to change, as well (but it's typically set to unlimited by default). See [1]. -- 165.124.111.179 15:47, 1 June 2007 (UTC)
- The limitation is not in MediaWiki -- it is in PHP. There is a default upload and post limit of 2MB. See the two links I added to the bottom of the Manual page. -- 165.124.111.179 00:10, 1 June 2007 (UTC)
[edit] $wgUploadSizeWarning?
So this is just the value that will be read as "size shouldn't exceed..." and you can click "Yes, Upload" anyway? So if disabled the warning by $wgUploadSizeWarning = "0"; I don't need to adjust $wgMaxUploadSize but limit the REAL max file size in php.ini as described here? --Subfader 22:06, 12 February 2008 (UTC)

