Laden Sie die Datei mit XMLHttpRequest aus dem HTML5-Dateisystem hoch

Es wird versucht, einige im Dateisystem von Google Chrome gespeicherte Bilder hochzuladen. Aber ich kann das Bild nicht hochladen. Irgendeine Idee, wie es geht?

Der Server empfängt ein leeres Array. Der Code von posttest.php ist nur print_r ($ _ POST)

 var xhr = new XMLHttpRequest();
    xhr.open('POST', '/posttest.php', true);
    xhr.onload = function(e) {
        if (this.status == 200) {
            console.log(this.responseText);
        }
    };
    window.resolveLocalFileSystemURL(image, function(fileEntry) {
        fileEntry.file(function(file) {
            var reader = new FileReader();
            reader.onloadend = function(e) {
                var formData = new FormData();
                formData.append('image', this.result);
                xhr.send(formData);
            };
            reader.readAsText(file);
        });
    });