Jump to content

max uploaded file size


rubing

Recommended Posts

I am trying to upload files to my server (shared hosting).  The size limit for uploaded files is 2M (default).  Well, of course I am super greedy and want to upload HUGE files!!!  

 

so, I tried amending the max size permitted as follows:

ini_set ('upload_max_filesize','25M');

 

Yet this has no effect.  Any suggestions?

 

 

Link to comment
https://forums.phpfreaks.com/topic/118179-max-uploaded-file-size/
Share on other sites

OK, so I changed it as follows:

ini_set ('upload_max_filesize','25M');
ini_set('post_max_size','25M');

 

Yet, this still doesn't work! (only on smaller files)  here are the errors i get:

Array ( [uploadedfile] => Array ( [name] => 01-Kushee Maanao-Aural Mix-Solace.mp3 [type] => [tmp_name] => [error] => 1 => 0 ) )

 

 

 

First of all, the settings you are trying to change using ini_set() statements cannot be changed in your script (please check the php manual for where any particular setting can be changed.)

 

You can set these in a .htaccess file (when php is running as an Apache module) or in a local php.ini file (when php is running as a CGI wrapper) AND the host has allowed those particular settings to be changed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.