In my gallery site I have created, I manually put in a date of when a picture was taken when I upload a picture to the site. When the source images are on Windows, their "Date Modified" field in Explorer is the actual date and time that I took the photo with my digital camera. I am seeking a way to convey that date automagically to my upload form, so that I know what date a picture was taken without having to look for it.
Through my testing, I already know that once a file is uploaded, it takes on a modification time of when the upload occured, and that original "Date Modified" field is completely lost. This throws out any use of filemtime() and the like. Is there anyway to get that date before I upload? If not with PHP, possibly some bit of javascript or somesuch?
Picture that I have selected which file I want to upload with the <input type=file> button, however I have not yet clicked on the final submit button. During this point, the browser knows what file I am going to choose, and in fact I use this info to show a preview of the local file in a second frame. (<IMG SRC=file:///blah/blah/blah.jpg>)
So anyway, give it some thought .... and then tell me it's impossible.
Thanks in advance one way or the other!
Jim