Files & File System
File Information
Inspect File object metadata including name, size, type, and lastModified timestamp.
Checking support...
Feature Not SupportedThis browser does not support the File Information Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
console.log(file.name, file.size, file.type, new Date(file.lastModified));
About the File Information Web API
The File interface provides information about files and allows JavaScript in a web page to access their content.
Specification:W3C & WHATWG Web API Standard
Sponsored Content