Top "Fileapi" questions

Use this tag for questions related to the W3C File API.

Large file upload with WebSocket

I'm trying to upload large files (at least 500MB, preferably up to a few GB) using the WebSocket API. The …

javascript html websocket large-files fileapi
Getting Image Dimensions using Javascript File API

I require to generate a thumbnail of an image in my Web Application. I make use of the Html 5 File …

javascript thumbnails fileapi
HTML5 File API downloading file from server and saving it in sandbox

I'm trying to understand HTML5 API. I'm designing the web application where the browser client need to download multiple files …

html blob fileapi filesaver.js
HTML5 File API: How to see the result of readAsText()

When readAsText() function is completed the result is stored in .result How do I see if the content of the …

javascript html fileapi
Adding UTF-8 BOM to string/Blob

I need to add a UTF-8 byte-order-mark to generated text data on client side. How do I do that? Using …

javascript utf-8 blob fileapi byte-order-mark
JS and type.match as file mime type - need advice

Today I faced an interesting thing as FF File API and separate files by their types. OK here is a …

javascript firefox google-chrome file-io fileapi
Using FileReader.readAsArrayBuffer() on changed files in Firefox

I'm running into an odd problem using FileReader.readAsArrayBuffer that only seems to affect Firefox (I tested in the current …

javascript firefox filereader fileapi
restrict file upload selection to specific types

Anyway to restrict the selection of file types via the <input type="file" /> element? For instance, if I …

html file-upload fileapi
Writing file to desktop using HTML5 FileSystem API

I'm playing around a bit with the FileSystem API. I've found a lot of examples where you generate a download …

javascript html fileapi
Remember and Repopulate File Input

Note: The answer(s) below reflect the state of legacy browsers in 2009. Now you can actually set the value of …

javascript html file-upload fileapi