Pregunta

I use hunchentoot web server, and upload files there. It stores a file into a temporary location (/tmp/hunchentoot/hunchentoot-XX), and sets the modification and creation date to now. How can I get an original creation date of the file received?

¿Fue útil?

Solución

1) The date is not sent over HTTP at all, it does not depend on your server. 2) You can not expect to always have correct date information from client.

If file format contains date then parse the format. Do this if you are sure format won't be tampered with by malisious user.

If you trust the user let him select date manually.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top