Skip to content

Commit 7c5b74c

Browse files
committed
disable file picker due to cross-origin restrictions in Chrome
1 parent a9f3ad1 commit 7c5b74c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/lib/sb-file-uploader-hoc.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const SBFileUploaderHOC = function (WrappedComponent) {
7373
this.fileReader = new FileReader();
7474
this.fileReader.onload = this.onload;
7575
// tw: Use FS API when available
76-
if (this.props.showOpenFilePicker) {
76+
if (1 == 0) {// ct: chrome does not allow to use FS API in an iframe (cross-origin) so we have to use the file picker
7777
(async () => {
7878
try {
7979
const [handle] = await this.props.showOpenFilePicker({

0 commit comments

Comments
 (0)