Jump to content


Photo

PHP file Upload Problems


  • Please log in to reply
2 replies to this topic

#1 jawbreaker

jawbreaker
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 23 March 2006 - 03:06 PM

I have a problem with either the php code or the configuration of my server. I am trying to upload files to a mysql database and it works until I try and upload a file larger than 1MB. I tried to increase "max_allowed_packet" on my mysql server and that did not work. I still get the following error.

Warning: fread(): supplied argument is not a valid stream resource in

Again this only happens when I try and upload a file larger than 1MB.

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 23 March 2006 - 03:51 PM

Look for "upload_max_filesize" in your php.ini file.

Info: PHP Manual


#3 jawbreaker

jawbreaker
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 23 March 2006 - 04:57 PM

Thank you for the help. Changing that option in the config. file worked.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users