mySQL Max File Size

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
kristolklp
Forum Commoner
Posts: 30
Joined: Mon Sep 05, 2005 2:24 pm

mySQL Max File Size

Post by kristolklp »

I am using mySQL to store images that users upload from my site. It seems the max file size allowed to be entered into the database is 1MB, can this be changed to allow larger images to be stored?

In my HTML, I have <input type="hidden" name="MAX_FILESIZE" value'="24000000"> but apparently I need to change more than just this. ANy help is appreciated.

Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

although storing images directly in a database is not recommended, depending on the field size you've used, you are limited to various sizes, however 1MB is no where near one of those. So I'd bet it's your server's max_upload_size or related directive settings.
Post Reply