How send the cropped image to the server? #221
-
I've overriden the submit so I can assing the cropped image to the formData
But on the server it's save as broken file. If I upload the original e.target.files[0] it works fine in the server. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't really know how to do this. On our website, we don't upload the image with the form on submit but when the image is cropped. There we upload it as base64 and the API simply return a temporary asset id. Then we send this asset id when the form is submitted and the API deals with it. |
Beta Was this translation helpful? Give feedback.
I don't really know how to do this. On our website, we don't upload the image with the form on submit but when the image is cropped. There we upload it as base64 and the API simply return a temporary asset id. Then we send this asset id when the form is submitted and the API deals with it.