Oct 17
Here’s a code snippet that I mashed up recently. I started with Asynchronous image file upload without AJAX and worked in code from one or two tutorials. The result is an asynchronous image uploading script, using an iFrame, that resizes the images and stores both the original and the thumbnail in a database.
Get it here:
The table that needs to exist in your database:
`id` int(11) NOT NULL auto_increment,
`name` varchar(30) NOT NULL,
`type` varchar(30) NOT NULL,
`size` int(11) NOT NULL,
`content` mediumblob NOT NULL,
`thumb` mediumblob,
PRIMARY KEY (`id`)
)


