window.webkitRequestFileSystem does not work for me

824 views
Skip to first unread message

SV

unread,
Aug 30, 2011, 7:29:45 AM8/30/11
to Chromium HTML5
Hi,

Am using the following code and trying in chrome

if (window.webkitRequestFileSystem) {
mysystem = window.webkitRequestFileSystem;
} else {

mysystem = window.RequestFileSystem;

}
mysystem(window.PERSISTENT, 1024 * 1024, onInitFs, errorHandler);

But my function onInitFs() does not get called. Please let me know how
to use this function to read local files.

Thanks,
SV

Eric Bidelman

unread,
Aug 30, 2011, 11:12:39 AM8/30/11
to SV, Chromium HTML5
That code works for me. What's your errorHandler showing? What version of Chrome
are you using? Also, for PERSISTENT storage, you need to use the webkitStorageInfo
quota apis if you plan on writing data to persistent storage. See https://groups.google.com/a/chromium.org/group/chromium-html5/browse_thread/thread/9be7a2dc04d9af67#

BTW, your second assignment should window.requestFileSystem.


--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.




--
Eric Bidelman | Senior Developer Programs Engineer | e.bid...@google.com 
Reply all
Reply to author
Forward
0 new messages