ebidel / idb.filesystem.js

HTML5 Filesystem API polyfill using IndexedDB
https://www.npmjs.com/package/idb.filesystem.js
Other
487 stars 46 forks source link

Downloading files from FF #4

Closed dsmithn closed 12 years ago

dsmithn commented 12 years ago

Using FF 12 (Beta) I am unable to download any files from the browser. Firebug:

Failure arg 0 [nsIDOMMozURLProperty.createObjectURL] [Break On This Error]

iframe.src = window.URL.createObjectURL(f); app.js (line 159)

On the second demo, I get a popup warning: "Firefox doesn't know how to open this address, because the protocol (filesystem) isn't associated with any program."

ebidel commented 12 years ago

What demo is this? FF doesn't support a[download] which is what the playground demo uses. The popup preview also won't work because filesystem:// URLs aren't native to the browser.

However, I should update the demo to use the blob url or something.

dsmithn commented 12 years ago

With: http://html5-demos.appspot.com/static/filesystem/idb.filesystem.js/demos/basic/index.html

I see now that with images and text files I can see the preview in the frame, I just can't download them. I was expecting it to work like chrome, and used a PDF as a sample file.

Thanks!