ebidel / filer.js

A wrapper library for the HTML5 Filesystem API what reuses UNIX commands (cp, mv, ls) for its API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filer.js running locally

DanielNAF opened this issue · comments

Ok, I am trying to create a web app using filer.js, but I do not pretend to publish on a server, and I will use the app locally file://... just for me, and I am using Google Chrome version 20.0.1132.47 . I got some errors while using filer.js, and thought it was my app, but then I downloaded your demo and ran it locally (but with the --allow-file-access-from-files flag), and almost everything worked (dropping files, creating folders and I can even see all the files at filesystem:file:///temporary/, but it gives an error when I try to run the filer.open() function (by clicking "preview file"). The error is: Uncaught Error: Problem getting Entry for one or more paths. at file.min.js:7. I tried to read the codes and fix but I cannot fix it ( sorry, I`m sort of new at HTML5 filesystem api). Could you help me please?

Thanks a lot,
Daniel

p.s: Excuse my bad English, because I am not american and I am new to Github...

That error comes from getEntry_. Try checking what the e.code is in the error callback of that function. Have you tried running this app from a a web server. The FS API is not meant to be used from file://, so that's probably why you're seeing issues (even with the flag set).

Hi!
I just turned on Apache in my computer, and now I'm working on my localhost and Filer now is working perfectly!
Thanks a lot for the tip ;)
Wow, HTML5 Filesystem is definitely better than using cookies for storing stuff, it's a great technology!

Cheers,
Daniel