commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Krivoshein" <mikhail.krivosh...@gmail.com>
Subject Re: Issue with File Upload.
Date Sun, 27 Jul 2008 00:44:54 GMT
Hi Murali,

That is not issue with Apache commons file upload. HTTP doesn't
support concept of files, thus everything client sends to the server
is always considered to be new.

Best regards,
Mikhail Krivoshein

2008/7/23 Murali Ramanathan <mramanathan@sapient.com>:
>
> Hi All,
>
> We are facing an issue when uploading a file using  Apache commons file
> upload.
>
> 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
> E-Mail: mramanathan@sapient.com
> <BLOCKED::mailto:vsubramanian@sapient.com>
>
>
>

Mime
View raw message