How to access the Created Date and or Last edited date for inputfile?
Thank you so very much for this useful piece of Open Sauce software. I am relatively new to ASP.net programming (well really formal programming altogether), and have found this neatupload useful for a great starting point.
Recently I have a situation where I would like to track the created date and/or the last edited date of the file in a database alongside the files. Sort of a Document Management project, but my relative lack of experience has reared its ugly head once again and I can't seem to figure out how I might access these particular properties of the inputfile.
I am also tracking the filesize in my database and I 'assume' I can use inputfile.size to get that, am I correct in that assumption?
Thanks for any response it is greatly appreciated!
Re: How to access the Created Date and or Last edited date for inputfile?
The creation and modification dates on the file will correspond to the date of the upload, not the date on the user's machine. I don't think MoveTo() will modify them. You can access them by creating a FileInfo object for the path you passed to MoveTo() and then using its properties.