I'm having troubles with my MultiUploader. It works and everything, but it will not let me upload more than 2MB's at a time, and i checked MAX_FILE_SIZE and POST_MAX_SIZE and the values were....
MAX_FILE_SIZE: 8388608 bytes or 8MB
POST_MAX_SIZE: 8388608 bytes or 8MB
I tried changing it with PHP's ini_set, but i can only retrieve the values with ini_get..everytime I tried changing it with ini-set, it would never actually change. I also tried lookg on other websites and through search engines, but I cannot seem to find anything. If anyone has any ideas, please post them.
The script itself probabally has a max file size,
Check the PHP settings, in the config/settings file.
I think you are looking at the wrong PHP.ini settings.
Try changing the value of memory_limit, not just post_max_size and upload_max_filesize.
To sum this up, check all the following things:
- memory_limit 32M
- LimitRequestBody (in apache, sometimes it limits bodies to 512kb)
To show php related settings create a file with the following contents
If you aren't dynamically changing the configurations then you should be able to see the static settings.
Are you looking at php.ini when you get those? Make sure there's not an htaccess in the way.
Also, is this dedicated or shared? Because if it's shared even your custom php.ini may have a limit it can't over-ride. Talk to the host.
I did check :
POST_MAX_SIZE = 8M
max_execution_time = 30
these are the only settings I found throughout phpinfo(). I did find upload_max_filesize in phpinfo(). And i noticed it was set to 2MB's. I tried also changing this with ini_set, but no luck. I then tried looking on the net , and found someone saying it could only be changed through php.ini or httpd.conf.
They were wrong. It's either a PHP_INI_ALL or PHP_INI_PERDIR setting, depending on version. That assumes the necessary overrides are allowed in your virtual host setup though.
Originally Posted by Enjoii
Theres also a setting in httpd.conf, with the max body size.
And what is it's alias?
Can't find anything there about it...
Yup - good point.
Are you working on your localhost, dedicated server or shared hosting?
Who you referring to, me or the author?
Originally Posted by arkinstall
i'm working off a webhost. I had a dedicated server, but I do not own it anymore.
Thank you guys for all your input, by I have reached a solution. I added a .htaccess file to my public_html, and changed upload_max_filesize to what I needed it to be, and I checked it through ini_get and phpinfo(), and the value was there.