There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers error excel firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem ram router slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
mysql db file upload limitation question


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
noveltech's Avatar
Member with 65 posts.
 
Join Date: Sep 2002
Location: Jax Fl
01-Jan-2007, 12:22 PM #1
mysql db file upload limitation question
The existing mysql db has a field as described below. I would like to limit the image/graphic size to be uploaded.

Field=image, Type=text, Attributes=Blank, Null=no, Default=blank, Extra=blank

Is there a way to do it? Using php pages within site.

Is it done by the php code or thru settings within the mysql db?

All feedback welcomed. Thanks, nt
Chicon's Avatar
Computer Specs
Distinguished Member with 6,681 posts.
 
Join Date: Jul 2004
Location: 50° 34' 07.13" N - 04° 10' 23.
Experience: Second socks retriever
01-Jan-2007, 02:29 PM #2
Hi noveltech,

You may be interested by Uploading Files To MySQL Database in PHP.

brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
01-Jan-2007, 04:53 PM #3
Is the database just storing the filename of the image? If it actually has the image in MySQL, that should be a BLOB type.
If you're trying to limit the filesize of the images, you can use the filesize() function. If you're talking about the height/width of the pictures, use getimagesize().
__________________
-Brendan
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:08 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.