You could use cfdirectory with the action="list"
and filter="your-filename"
to get the following information about the uploaded file:
If action = "list", cfdirectory returns the following result columns, which you can reference in a cfoutput tag:
- name: Directory entry name. The entries "." and ".." are not returned.
- directory: Directory that contains the entry.
- size: Directory entry size.
- type: File type: file, for a file; dir, for a directory.
- dateLastModified: The date that an entry was last modified.
- attributes: File attributes, if applicable.
- mode: Empty column; retained for backward compatibility with ColdFusion 5 applications on UNIX.
Of interest to you is the dateLastModified
column.
So you should be able to do something like:
<cfdirectory action="list" name="dirQuery" directory="C:/var/www/reports/" filter="#thefile#.cfm">
Then you can dump that result to see what information is available to you:
<cfdump var="#dirQuery#">
The dateLastModified
column can be accessed like:
<cfoutput>#dirQuery.dateLastModified#</cfoutput>