From d2a99fa95716687e1cf25aa246b25749adc8bb1b Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Wed, 29 Nov 2023 23:30:25 +0000 Subject: [PATCH] Disable image from clipboard paste in file upload. This results in large png image. --- public/js/module/user/photoUpload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/module/user/photoUpload.js b/public/js/module/user/photoUpload.js index 8a4506724..9097af4b2 100644 --- a/public/js/module/user/photoUpload.js +++ b/public/js/module/user/photoUpload.js @@ -98,7 +98,7 @@ define(['underscore', 'Browser', 'Utils', 'socket!', 'Params', 'knockout', 'knoc this.$fileupload.fileupload('option', { url: '/upload', dropZone: $(document), //this.$dom.find('.addfiles_area'), - pasteZone: $(document), + pasteZone: null, singleFileUploads: true, sequentialUploads: false, limitConcurrentUploads: 3,