Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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: 62312

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you tried LearnNowOnline?
subject: last modified date of a file.