How do I use this lib to submit a cropped image in a form ? #384
Replies: 1 comment
-
Nevermind just convert the base64 to IFormFile |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm new to blazor and c#, and I need help to use this library inside a form to submit the cropped image with others inputs.
I have this Edit Form, the cropper component, the result of the cropping in a img src element, but how do I put back the cropped image into an IFormFile to upload the File.
Once I have the croppedCanvasDataURL, what can I do to send it into the IFormFile used to submit files? At first, I thought the cropperComponant was another Input and I could use the event OnCropEnd like the Onchange of the InputFile, but I can't. Am I missing a piece of logic?
Thanks for all the help and support.
Beta Was this translation helpful? Give feedback.
All reactions