image with Content-Type: text/html;

i have images such as this

its Content-Type: text/html;
"carrierwave" dosent recognize it as image

is there is any way to fix that ?

Because text/html isn't an image. Don't send it as that, send it as
image/jpg. What you're doing is like trying to upload an apple, but
telling the other end you're sending it an orange.


thank you for your reply
i need such a way to convert it to an image and upload it
or any other solution for that case