Page 1 of 1

finding the date of an uploaded file

Posted: Wed Sep 07, 2005 6:11 pm
by mendingo
Is there a way to get the date of an uploaded file?

I want to extract the date a file was created when it's been uploaded to my site. Using stat() gets me nothing at all, and using filemtime and filectime both return me the date the file was uploaded, rather than its original datestamp.

Is what I'm trying to do even possible?

Posted: Wed Sep 07, 2005 6:37 pm
by jwalsh
I dont see how it's possible. Since different filetypes store the created date differently (if at all). You'd have to rely on the OS's record of the create, which when uploaded, switches computers so that record isn't available.

Posted: Wed Sep 07, 2005 6:41 pm
by mendingo
I thought that might be the case, thanks.