Hi All,
I need to download large video files and play them in future. We ported app from Cordova and everything works well except file system access, as we are starting app as file://.
So, the following simple test:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>FS Test</title>
</head>
<body>
<script>
dataDirectory = "filesystem:file:///C:/temp/";
window.webkitResolveLocalFileSystemURL(dataDirectory, function(directoryEntry) {
console.log(directoryEntry);
},
function (e) {
console.log(e)
});
</script>
</body>
</html>
fires an error:
FileError
code: 5
message: "A URI supplied to the API was malformed, or the resulting Data URL has exceeded the URL length limitations for Data URLs."
name: "EncodingError"
__proto__: FileError
Please advise.