W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2010

[whatwg] New File attributes creationDate, modificationDate and size

From: Ashley Sheridan <ash@ashleysheridan.co.uk>
Date: Wed, 12 May 2010 12:25:00 +0100
Message-ID: <1273663500.21168.199.camel@localhost>
On Wed, 2010-05-12 at 00:05 -0400, Biju wrote:

> It would be good if we can also get the same at server side when user
> upload a file using form with file controls
> ie, like the suggestion at https://bugzilla.mozilla.org/show_bug.cgi?id=549253
> (it works even with javascript disabled)
> Also remember modificationDate can be a time before creationDate on windows.
> This is because modificationDate get copied when you copy a file,
> hence it almost shows modificationDate of the actual content.
> creationDate on other hand is file creation time on the
> folder/directory and when you copy a file to a new directory, it will
> be showing the coping time.
> PS, for JS option there is mozilla bug 390776

You can get the same on the server side. how you get it just varies from
language to language though, and obviously the exact file information
available is dependant on the file system in use, i.e. fat32, ntfs,
ext3, reiserfs, etc.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100512/1f250aab/attachment.htm>
Received on Wednesday, 12 May 2010 04:25:00 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:23 UTC