commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <mart...@apache.org>
Subject Re: FileUpload - Retrieve Datestamp
Date Wed, 20 Sep 2006 17:16:03 GMT
On 9/19/06, Shaun_Curtis@amp.com.au <Shaun_Curtis@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.
>
>

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