cancel
Showing results for 
Search instead for 
Did you mean: 

MIME type is not valid

MIME type is not valid

Hi

 

i'm using magento api, and have an error:

{"message":"The image MIME type is not valid or not supported."}

Request:

https://preprod.ftg.dev.x-coding.pl/rest/all/V1/products/cichobieg/media?

POST
Content-Type: application/json
Authorization: Bearer cz3p4vxgbrxcz5uct6rl9m0q8o66rwix

 

{"entry":{"media_type":"image","label":"jajko","position":0,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"/j/a/jajko.jpg","content":{"base64_encoded_data":"iVBORw0KGgoAAAANSUhEUgAAAMcAAACcCAMAAAD8kk/AAAACQFBMVEX////wTiPsTCT3+Pjl5eTT09P19fXMy8vb29rw7+/Q0NDkSCXHxsbdRCbe3t3IPSbNPya9vb3TQibAOiavr6+VlZW5NibYQyYAAAC2tregoKCtMCSOjo7wQQCnp6fydVzwRhTvLwD/9/WRIR6aJiCDy/T1k4UAAxj5wLf2n5Pzf2j2nIv3raDk7OyMAACoAAAAk9MArPIAyv/f9P3z///6z8jG6Pv72NPjOQCn2ffU7v0vsfBEuvGV1fZiwvMAo+0mJiY0NDR5e31CT1HXnpX96+YRFCDyaFDzgnXisaseIipubm70i3bxYkTwEwBDREfwTziMnrUngLopcqR+i5u2oKFmpMrk4tVvAACsrroAZqZZc4GjdYmzAFrUAG2gAFYAPHUATYq2rISwmkG/pACtf3vIAABAAACbHQBkgT+Ak2NEY3dWlKk+MkKDQDyquKG0xZvFyLikQHv/F5u+AG0Ahixvq3v70QD/4gBqZS+ramPDVSNsWFqfyRyOpCUxiZUWns92m5IZACpgMCyBiSkAS2YAgqznuRibdDfKF4bkQZUAZBYdylIxbXuwoCFTPR3O6CxdY0eMkQAjAB6bOACtsBBIPgC9iwBoH0kmOy8/jz1Nu0kKblaVghdfGyXfJSXFaz8iOkmeQSOHUyuCfFXNaJ0rW1X+6EP9eDzJhEmxvlnCuXeTTXFNhRyNgTbu9hR3xUNbbA5EKSbOoECwXkkAhtaAsLz8sgrikwBtQ1xtqk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zbZw3g1bMSbob9aC5qvOiGABE08mTM4OB58CMvPzmLf2svklfEDCi8cjJp+bnIaPKFLM7Hm253bNHGLn1j9JO//7fx0HFAv6Bvj6b7ZGtr2/AH4g9b1aUywrEdgy8ePHixYsXL168ePHixYsXL17/f/oPbXVb9uxrCcYAAAAASUVORK5CYII=","type":"image/jpeg","name":"jajko.jpg"}}}


Despite the correct mime type ==> "image / jpeg" I gets a message that it is incorrect.
Photo in the attachment.

Thanks

 

https://i.stack.imgur.com/qdhQ7.png 

qdhQ7