You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Sh...@amp.com.au on 2006/09/20 04:38:44 UTC

FileUpload - Retrieve Datestamp

Hi,

Regarding the Commons-FileUpload package, Is it possible to retrieve the 
Last Modified datestamp from an uploaded file?

Many thanks for any help or suggestions.

SC
This email message and any accompanying attachments may contain
information that is confidential and is subject to legal privilege. If you are not
the intended recipient, do not read, use, disseminate, distribute or copy this
message or attachments. If you have received this message in error, please
notify the sender immediately and delete this message. Any views expressed
in this message are those of the individual sender, except where the sender
expressly, and with authority, states them to be the views of AMP. Before
opening any attachments, please check them for viruses and defects.

Re: FileUpload - Retrieve Datestamp

Posted by Martin Cooper <ma...@apache.org>.
On 9/19/06, Shaun_Curtis@amp.com.au <Sh...@amp.com.au> wrote:
>
> Hi,
>
> Regarding the Commons-FileUpload package, Is it possible to retrieve the
> Last Modified datestamp from an uploaded file?


In the general case, no. Commons FileUpload can provide to you only what is
provided to it by the browser (or other client). Browsers do not provide
such information, and in fact there is no guarantee that an uploaded file
item actually started out as a file in the first place. A custom client, of
course, could add such information in such a manner that it could be
extracted by matching code on the server, but you would have to implement
both sides of this yourself.

--
Martin Cooper


Many thanks for any help or suggestions.
>
> SC
> This email message and any accompanying attachments may contain
> information that is confidential and is subject to legal privilege. If you
> are not
> the intended recipient, do not read, use, disseminate, distribute or copy
> this
> message or attachments. If you have received this message in error, please
> notify the sender immediately and delete this message. Any views expressed
> in this message are those of the individual sender, except where the
> sender
> expressly, and with authority, states them to be the views of AMP. Before
> opening any attachments, please check them for viruses and defects.
>
>