Tag: html5 filesystem

如何使用javascript或jquery在浏览器上获取文件创建日期

我需要在上传xls文件时找出文件创建日期和文件上次修改日期,我必须在这两个日期做一些计算。 通过使用下面的代码我可以很容易地获得文件最后修改日期 $(‘#userfile’).bind(‘change’, function() { //this.files[0].size gets the size of your file. alert((this.files[0].lastModifiedDate)); alert((this.files[0].DateCreated)); $file_full_path =this.files[0].mozFullPath; alert(alert); }); 我无法找到文件创建日期。 任何人都可以帮助我。 我也通过PHP尝试过,但是不可能通过php,因为php不会将此信息发送到服务器。 请告诉我有没有办法获取这些信息。 谢谢。