v3/examples/web-apis/file-api/frontend/index.html
The File API provides access to file information and content, enabling web applications to read files selected by users through file inputs or drag-and-drop operations.
File API available: checking...
Drop files here or click to select
Supports multiple files of any type
Select a file above to see its details
No file selected yet...
Choose how to read the selected file
As TextAs Data URLAs ArrayBufferAs Binary String Read FileAbort
Select a file and click "Read File" to see content...
Read a portion of the selected file using slice()
Start byte:
End byte:
Read Slice Select a file and define a range to read a slice...
Create a new File object from text content
File content:Hello, this is a test file created using the File API!
File name:
MIME type:
Create FileDownload File Click "Create File" to create a new File object...
Clear Log
Ready to log file events...