Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

last modified date of a file

 
Prabu Bala
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.Please let me know how to get the value.

Thanks in advance.
Prabu
 
Sid Murrey
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Impossible. You would have to do this client-side, passing the last modified date to the server additionally.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic