File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes last modified date of a file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

last modified date of a file.

Prabu Bala

Joined: Feb 27, 2007
Posts: 23
Hi All,
I need a help from you all. I need to upload a file from client machine to server. I did it using MultipartHttpServletRequest API. Now i want to get the last modified date of a file.I used file.lastModified method to get the date but it returns the date when we upload the file to server, it not returns the original last modified date. Let me know is it possible to get teh file last modified date from the client side itself using javascript?

Thanks in advance.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.

[Asking smart questions] [About Bear] [Books by Bear]
subject: last modified date of a file.
It's not a secret anymore!