Save cropped image from image tag using cropme plugin using ajax in php |
05-25-2021, 12:07 AM
(This post was last modified: 05-28-2021, 11:50 PM by lgedson. Edit Reason: Spam link removed )
I have used Cropme jquery plugin to resize, crop and do other functionalities on an uploaded image. I want to save the cropped image in the database of my website Jazz Daily internet package. But when I try to store the image it uploads the image which was uploaded in ***SPAM LINK REMOVED***. Below is the config js.
Code: new Vue({ This is my ajax request Code: $.ajax({ This is form input Code: <input type="file" class="form-control-file position-absolute" accept="image/*" id="addFoodImage" name="addFoodImage" data-msg-accept="Bitte lade ein Bild mit einem gültigen Dateiformat hoch (jpg, png, tiff)."> and when i try to fetch the uploaded file in controller then it saves the initially uploaded image. When the image is previewed then I am changing the value of input file type.
below is the image of form to get a clear idea. [color=var(--theme-link-color)]form[/color]
Please help me with this. How can I pass the image from img tag in ajax request or set the new cropped image in the file input?
|
Messages In This Thread |
Save cropped image from image tag using cropme plugin using ajax in php - by lgedson - 05-25-2021, 12:07 AM
RE: Save cropped image from image tag using cropme plugin using ajax in php - by paliz - 05-25-2021, 12:43 PM
|