FileUpload - Retrieve Datestamp

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FileUpload - Retrieve Datestamp

Shaun_Curtis
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.
Reply | Threaded
Open this post in threaded view
|

Re: FileUpload - Retrieve Datestamp

Martin Cooper-3
On 9/19/06, [hidden email] <[hidden email]> 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.
>
>