Jump to content


Photo

upload_max_filesize


  • Please log in to reply
2 replies to this topic

#1 marcur12

marcur12
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 14 October 2006 - 09:04 PM

Hi. I'm having trouble uploading things to my webserver because the the maximum upload size is 2,048KB. I've tried changing the upload_max_filesize to upload_max_filesize = 15M in the php.ini file, and restarting apache, but it's still 2,048KB.

#2 MCP

MCP
  • Members
  • PipPipPip
  • Advanced Member
  • 60 posts

Posted 15 October 2006 - 12:36 AM

try

post_max_size = 15M


#3 toter

toter
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 15 October 2006 - 12:47 AM

or you can try this in your script:

if($_FILES['file_field_name']['size'] > 15728640){
          echo "File is too big";
} else{
          upload script
}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users