FloppyDisk Posted November 12, 2019 Share Posted November 12, 2019 Hello! I need your help. I am trying to upload an image via the REST API. I am searching the internet for a solution but every forum entry with this topic has no answer. Can anyone tell me how the xml structure should look like for uploading an image with base64 encoding? like: <prestashop> <image> <content encode="base64">here the base64 string</content> </image> </prestashop> the reply is always the error 66 and "cannot save image". On the ftp the file permissions are set to 727. I am glad for any kind of help!!! thanks in advance Link to comment Share on other sites More sharing options...
FloppyDisk Posted November 12, 2019 Author Share Posted November 12, 2019 Add: And maybe the headers? I've set Content-type to multipart/form-data and Mime type (depending if jpg or png) to data:image/png Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now