Member Avatar

...was asked for some php file upload code, so I thought I would post some stripped down, barebones code that I use in admin/dashboard pages to add/change images associated with products. Please see attached image for folder setup. The code uses the [jQuery Form](http://malsup.com/jquery/form/) plugin by Mike Alsup. **index.php** has two forms; one for the image uploads and the other to show where you would have your "product add/update" form. Files are immediately uploaded to a tmp directory whenever you select an image. If you change your mind a few times you can end up with lots of images in …

Member Avatar
1
118
Member Avatar

I've just posted a code snippet, but it didn't go as well as I would have liked. Is there a "test" posting area in which to "play" ? :D

Member Avatar
0
41
Member Avatar

There seems to be a lot of "how to... images in databases" questions. What are the Pros and Cons of this Vs good old fashioned images in folders?

Member Avatar
0
18

The End.