I have used cropper.js plugin in my application to crop images. I am able to crop the images. Now I am trying to upload the images instead of downloading them. I have updated th
github.com/fengyuanchen/cropperj Api Doc for Server Upload as formData and Image src tag definition.
and watch out the below paragraph of getCroppedCanvas():
After then, you can display the canvas as an image directly, or use HTMLCanvasElement.toDataURL to get a Data URL, or use HTMLCanvasElement.toBlob to get a blob and upload it to server with FormData if the browser supports these APIs.