0

Hi Everyone. Still have had no joy on my last post but here is another. I am uploading an image to a blob field in MySql DB. Again, on my local machine its fine...however, on the server it does not get added to the field. All other information is added....eg fileName and Type but not the actual file. Any ideas from anyone??

4
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by ashneet
0

Hi Everyone. Still have had no joy on my last post but here is another. I am uploading an image to a blob field in MySql DB. Again, on my local machine its fine...however, on the server it does not get added to the field. All other information is added....eg fileName and Type but not the actual file. Any ideas from anyone??

Could you post the code you're using to save the fields to the database please. That would help in figuring the problem out.

0

If the code is correct and works in local machine, it's possible that you have a permission problem on the server. Make sure you make the upload folder writable. A warning should be printed out when this fails, but maybe that is going in your logs and you don't see it.

0

You may want to phpinfo your server and check what the value for post_max_size is set to.
if it is set lower then your picture size then there is your problem.
I think Default for php is 2MB but not sure.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.