Skip to content

Commit

Permalink
Updated hidden input type to textarea, so that large sized dataUri ca…
Browse files Browse the repository at this point in the history
…n be posted via POST request even on safari
  • Loading branch information
Raitis Rasmanis committed Apr 2, 2020
1 parent d801f70 commit 1336667
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/views/cropper.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ function setCrop$uniqueId() {
height: options_$uniqueId.data.cropHeight
});
options_$uniqueId.element.result.html('<img src="' + options_$uniqueId.croppedCanvas.toDataURL() + '" id="cropper-image-$uniqueId">');
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());
}
Expand Down

0 comments on commit 1336667

Please sign in to comment.