Skip to content

Commit

Permalink
fixed upload bug
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammed-abuodeh committed Feb 15, 2024
1 parent 8383645 commit d4a29a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@ function RemoteFileInputChecker() {
return pickedFile;
}

async function setupTreePage() {
let file = RemoteFileInputChecker();
async function setupTreePage(FileInputChecker) {
let file = FileInputChecker();
if (!file) return;
if (!isValidExtension(file.name)) {return;}

Expand Down
2 changes: 1 addition & 1 deletion viewtree.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<input style="float: left; display: none" type="button" id="browse_btn" value="Browse MyDrive" />
<p id="picked_filename" style="float: left"></p>
<input style="float:right" type="button" id="treebtn1" value="Upload"
onClick="setupTreePage()" />
onClick="setupTreePage(RemoteFileInputChecker)" />
</section>
</div>

Expand Down

0 comments on commit d4a29a3

Please sign in to comment.