简体   繁体   中英

How to get the file name,modified date of the uploaded file in angular 4?

Html File:

<label class="import-file">
   <input type="file"  accept=".doc,.pdf" hidden required>
</label>

Thanks in advance.

要获取修改日期:

let modifiedDate= file.lastModifiedDate;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM