I would like to learn how to create a web form which will allow end users to upload images. In addition, I would like the uploaded image file path to be stored in a mysql table so that it can be referenced throughout other web pages in my project.
The web form would contain the following fields:
If possible, the ability to create thumbnail versions of the uploaded images on the fly would be a plus. I remember reading that PHP has some built in functions for such a task.
I think I can handle the mechanics of editing and deleting the title and desctiption once they are in the db, but the file upload is what I need help with.
I have read up on php's ftp functions and attempted to implement on my own without success. Since it would be beneficial for my end user to be able to batch upload the files, I thought using FTP would be best, but maybe there is a better solution.
Does anyone have a solution for file upload? I intend to expand on this once we get it up and running to include the ability to upload other file types such as .flv and/or .swf -- as well as expand its functionality to allow the end user to create "galleries" of photos by incorporating another form which will associate groups of these files with each gallery. Again, I think I can figure that one out -- but the file uplaod part is what I am struggling with right now.
Sorry for being so wordy and as always, thank you in advance for any help that is offered.