Jump to content

Archived

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

jawbreaker

PHP file Upload Problems

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Look for "upload_max_filesize" in your php.ini file.

Share this post


Link to post
Share on other sites

×

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.