• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

How to use FILES["source"] value with API

ruslani

Chevereto Noob
Can can I use FILES["source"] value in the POST request to upload images from the hard drive (local images) using the API?
No matter how I try to modify the source value, I still get "Invalid base64 string." error message in response.
 
Yes, you can do it. But you have to send the request as a multipart/form-data. Since you aren't sending the request as multipart, the system assumes that the source is a string (base64). You either forge the form or you POST a base64 image.
 
Hi!
Still can't figure it out.
Here is what I've built in Paw:

2356

And still getting:
2357

Everything works fine if I use an URL with an image, it's just lacal files that are not working.
 
Back
Top