You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sandor Feher <sf...@bluesystem.hu> on 2012/06/15 14:07:42 UTC

Obtain last modified date from FileUploadField

Hi,

I need for the uploaded file's last modified date to store it in a table. So
the question is how to obtain this info from a FileUploadField field. As I
have seen there is no such method in FileUpload class.

thnx., Sandor

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Obtain-last-modified-date-from-FileUploadField-tp4650011.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Obtain last modified date from FileUploadField

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

I'm not sure such information actually goes to the server.
The browser sends a byte[] to the server in the request body.

See https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent/wicket-html5/src/main/java/org/wicketstuff/html5/fileapi
This code uses HTML5 APIs to read file attributes so it wont work on
IE9 and less.

On Fri, Jun 15, 2012 at 3:07 PM, Sandor Feher <sf...@bluesystem.hu> wrote:
> Hi,
>
> I need for the uploaded file's last modified date to store it in a table. So
> the question is how to obtain this info from a FileUploadField field. As I
> have seen there is no such method in FileUpload class.
>
> thnx., Sandor
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Obtain-last-modified-date-from-FileUploadField-tp4650011.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org