From 13366677b22685a2654cb34141e60f6d4dbd65de Mon Sep 17 00:00:00 2001 From: Raitis Rasmanis Date: Thu, 2 Apr 2020 10:50:37 +0300 Subject: [PATCH] Updated hidden input type to textarea, so that large sized dataUri can be posted via POST request even on safari --- src/views/cropper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/cropper.php b/src/views/cropper.php index 3366ea3..cb2463f 100644 --- a/src/views/cropper.php +++ b/src/views/cropper.php @@ -322,8 +322,7 @@ function setCrop$uniqueId() { height: options_$uniqueId.data.cropHeight }); options_$uniqueId.element.result.html(''); - options_$uniqueId.input.model.attr('type', 'text'); - options_$uniqueId.input.model.val(options_$uniqueId.croppedCanvas.toDataURL()); + options_$uniqueId.input.model.html(options_$uniqueId.croppedCanvas.toDataURL()); }