Re: Re: Upload File

From: Date: Wed, 10 May 2006 19:00:44 +0000
Subject: Re: Re: Upload File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235932@lists.php.net to get a copy of this message
On Wed, May 10, 2006 9:52 am, Renzo Clavijo wrote: > I'm gonna be more precise: > > I wrote a form with fields <text type="file" .... >, then i need to Should be <input And don't forget to use FORM attribute: enctype="multipart/form-data" > know how > to upload the files to the MySQL server (postgreSQL wold be > appreciated). It > implies: Which field(s) must have the table where I'll save the > image?. Is > there an example code to upload the file(s)? Are you going to write queries that involve the data *IN* the file as part of the search, sort, or filtering? If not, then just toss the files in the file-system and store the path to the file in the db. Much cleaner/easier. If you MUST store the data in the db, the size of the data determines the type of the field: varchar, text, blob, bigblob, humungousblob And, of course, this all depends on WHICH database you are using... Some call it "memo" some call it "blob" some call it something else. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#235932) next »