We never got around to implementing getEditable. Adding Jan who had some passing interesting in doing the work. (btw, patch accepted).
On 3/18/13 9:12 AM, Jan Jongboom wrote: > When I'm calling getEditable on the DeviceStorageAPI I'm presented with an > object that has the following keys: > > slice, name, type, size, mozSlice, lastModifiedDate, mozFullPath. Oh and > instanceof File is true which kinda gives it away :-) > > This is a File object rather than a FileHandle, which it should be according > to the documentation (https://wiki.mozilla.org/WebAPI/DeviceStorageAPI). Is > this a bug or am I missing something? > > Here's some code: > > var req = this.storage.getEditable(filename); > req.onsuccess = function(e) { > var fileHandle = e.target.result; > alert(fileHandle instanceof File); // true > alert(fileHandle instanceof FileHandle); // false > }; > _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
