html5-filesystem Questions

2

I am trying to find out if browser has ability to select folders, not just multiple files. Current Chrome supports this (example: http://html5-demos.appspot.com/static/html5storage/demos/upload_dir...
Debug asked 29/8, 2012 at 1:3

10

Solved

How do you set the name of a blob file in JavaScript when force downloading it through window.location? function newFile(data) { var json = JSON.stringify(data); var blob = new Blob([json], {type...
Endodontics asked 11/10, 2013 at 21:44

2

Solved

Can I use the File System Access API (https://web.dev/file-system-access/) to create something like a file explorer within a website (react). I plan to make a simple online file explorer that lets ...

3

Solved

I'm writing an extension that would ideally read files after they are downloaded (through the normal download process). Is that possible? I can get the filename through chrome.downloads operations,...

6

Solved

When doing webkitRequestFileSystem in window.PERSISTENT option in Google Chrome, where on my filesystem do files get written? I'd like to drop files there and have Chrome interact with them while I...
Hemi asked 26/7, 2012 at 19:24

5

Solved

I was trying to use browserify on a file that uses the fs object. When I browserify it, the call to require('fs') doesn't get transformed and require returns {}. Is there any workaround for this?...
Reisfield asked 19/5, 2013 at 22:32

2

Solved

In Chrome Apps, I'm downloading a blob content from a server using JavaScript XHR (Angular $http GET in particular, with response type 'blob') How should I save this to chrome application's file s...
Forestforestage asked 30/12, 2015 at 14:29

1

Solved

I have simple image uploader in a website and a javascript function which uses FileReader and converts image to base64 to display it for user without uploading it to actual server. function genera...
Negro asked 26/6, 2015 at 13:5

4

Solved

How does one completely empty (or delete all files in) a filesystem? Is there no 1 line solution like localStorage (localStorage.clear())? Or am I missing something really, really obvious? Appare...
Chlordane asked 14/4, 2012 at 22:4

3

Solved

I am not able to get the cordova file system to work. I have a project with the following dependencies: com.ionic.keyboard 1.0.3 "Keyboard" org.apache.cordova.console 0.2.12 "Console" org.apache.c...

1

Solved

I need to read a file which contains a group of symbols moved 65 in ASCII table. It means, for each symbol I am meant to do: String.fromCharCode('¢'.charCodeAt(0)-65) // returns 'a' But it is no...
Partible asked 17/6, 2016 at 15:9

1

According to Exploring the FileSystem APIs at Browser support & storage limitations You may need the --allow-file-access-from-files flag if you're debugging your app from file://. Not us...
Prostration asked 28/5, 2016 at 17:46

3

Solved

I have created file 'log.txt' by fileSystem API function initFS(grantedBytes) { window.requestFileSystem(window.PERSISTENT, grantedBytes, function (filesystem) { fs = filesystem; fs.root.getFi...

1

I need to save a file of unknown size, potentially multiple gigabytes, in JS. The data source is a mediastream captured using mediarecorder. In Chrome, this can be accomplished using the filesyste...
Repetend asked 30/3, 2016 at 18:37

1

Solved

I am using file input element to capture an image from android browser. Now I would like to convert the blob data into ImageData so that I can render it on a canvas using putImageData. <!DOCTYP...

1

I am now developing a cordova app whitch platform is browser(Chrome). I failed when using the cordova-plugin-file to read a file. According to the document of cordova-plugin-file : Chrome quirks, I...

2

Solved

I'm writing an HTML5 app to run in Chrome but it will be on the local filesystem (so they'll start it by double-clicking an html file). It is throwing an error when I try to access the filesystem a...
Pacha asked 10/5, 2013 at 17:30

1

Solved

I am now developing a cordova app which platform is browser. I need to access a text file from local file system, so I am using the cordova-plugin-file. But I failed as the exception in my chrome c...
Abaxial asked 15/12, 2015 at 7:46

2

I am doing a pretty standard drag and drop feature in HTML5. However, for some reason e.target.dataTransfer showing up as undefined. I am new to javascript. Any help will be appreciated. This is ...
Symptomatology asked 26/7, 2015 at 18:24

3

Solved

So there is a similar post found here html-5-filesystem-access-type-error. However, I'm not very satisfied with the conclusion because I do not feel it actually answered the question - the solution...
Arbalest asked 23/7, 2013 at 12:9

3

Solved

webkitStorageInfo.queryUsageAndQuota() is used to find out the usage stats of the files that have been stored in the file system using the HTML5 file system API I suppose. Can anyone give me the de...

0

I have the following code: chrome.runtime.getPackageDirectoryEntry(function(directoryEntry) { directoryEntry.getFile("files/test.txt", {create: true, exclusive: false}, function(fileEntry) { ...
Whittemore asked 30/12, 2014 at 23:3

2

Is there a way to pass large amounts of data (multiple MB) between a web worker and the main thread? I work in a project where I need to download files, modify them a bit and then somehow let the u...
Norway asked 5/10, 2012 at 12:14

1

Solved

I am just looking through the Cordova source code to try and figure something out, and there are currently six alternate methods/properties to access the path of a file. Currently (running using i...
Blond asked 15/5, 2014 at 10:41

1

Solved

I'm using HTML5 file API to upload files to my web application. I have an input element on my web page using which I read files and call upload function <input type="file"> $('input[type=...
Hedy asked 14/7, 2014 at 22:49

© 2022 - 2024 — McMap. All rights reserved.