commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murali Ramanathan" <>
Subject Issue with File Upload.
Date Wed, 23 Jul 2008 16:28:39 GMT

Hi All,

We are facing an issue when uploading a file using  Apache commons file

User select a file from the local file system to upload. We need to
compare the last modified timestamp of the file with the one in the
database. And if the file being uploaded is newer than the last modified
time in the database, the file will be uploaded to DB. We are facing an
issue in terms of getting the last modified time of the file being
uploaded. Part of the code which is being invoked on form submission is
given below.

CommonsMultipartFile multiPartFile = (CommonsMultipartFile)
((MultipartHttpServletRequest) request).getFile("file");	

Is there any way to get the file metadata from the multipart http
request? Any help is really appreciated.

Thanks and Regards,
Murali Ramanathan | Sapient
Office: +91-80-41047000
Mobile: +91-97315-20520
Fax: +91-80-41047001

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message