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
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 ) )

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.