mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
don`t allow upload when not on the upload page.
This commit is contained in:
@@ -133,6 +133,12 @@ $(document).ready(function() {
|
|||||||
// on file upload by browse or drag & drop
|
// on file upload by browse or drag & drop
|
||||||
function onUpload(event) {
|
function onUpload(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
|
// don't allow upload if not on upload page
|
||||||
|
if ($('#page-one').attr('hidden')){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
storage.totalUploads += 1;
|
storage.totalUploads += 1;
|
||||||
|
|
||||||
let file = '';
|
let file = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user