Skip to content

Commit d520791

Browse files
committed
fix: cannot open files in file panel after publishing
1 parent 34a3031 commit d520791

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/extensionsIntegrated/Phoenix/serverSync.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,15 @@ define(function (require, exports, module) {
101101
resolve();
102102
return;
103103
}
104-
file.read({encoding: window.fs.BYTE_ARRAY_ENCODING}, function (err, content, encoding, stat) {
105-
if (err){
106-
reject(err);
107-
return;
108-
}
109-
let blob = new Blob([content], {type:"application/octet-stream"});
110-
_uploadFile(file.fullPath, blob, resolve, reject);
111-
});
104+
file.read({encoding: window.fs.BYTE_ARRAY_ENCODING, doNotCache: true},
105+
function (err, content, encoding, stat) {
106+
if (err){
107+
reject(err);
108+
return;
109+
}
110+
let blob = new Blob([content], {type:"application/octet-stream"});
111+
_uploadFile(file.fullPath, blob, resolve, reject);
112+
});
112113
});
113114
}
114115

0 commit comments

Comments
 (0)