From c1bee96c40321c0183c2baf6704193819cfdbe97 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 8 Sep 2021 00:19:48 +0200 Subject: [PATCH] fix filedrop trying to upload without write access --- copyparty/web/up2k.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 234085ff..5bdc6286 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -715,13 +715,12 @@ function up2k_init(subtle) { offdrag.bind(this)(); var dz = (this && this.getAttribute('id')); - if ((dz == 'up_dz' && fsearch) || (dz == 'srch_dz' && !fsearch)) { - var err = this.getAttribute('err'); - if (err) - return modal.alert('sorry, ' + err); + var err = this.getAttribute('err'); + if (err) + return modal.alert('sorry, ' + err); + if ((dz == 'up_dz' && fsearch) || (dz == 'srch_dz' && !fsearch)) tgl_fsearch(); - } if (!QS('#op_up2k.act')) goto('up2k');