From 55a5f6d5bdbb8c163a63ee6da23062d850ab683c Mon Sep 17 00:00:00 2001 From: pavlosb Date: Sun, 26 May 2024 21:38:42 +0300 Subject: [PATCH] Update inspectionform.php --- application/views/inspectionform.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/views/inspectionform.php b/application/views/inspectionform.php index d2c4a8e..075383e 100644 --- a/application/views/inspectionform.php +++ b/application/views/inspectionform.php @@ -363,10 +363,7 @@ function uploadFile() { correspondingHeight ); - const resizedImage = canvas.toDataURL( - upload.type, - 1.0 - ); + const resizedImage = canvas.toDataURL(upload.type, 1.0); // If you bind this code as change listener to your upload element // , I would store the value of 'resizedImage' in a variable,