• 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

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

API BUG

Base 64 string is very sensitive and it must be sent using POST. You could try to use _FILES.
 
2 days more than 15 hours was trying to run the api and this still does not work

Too bad but I think I'll have to stay on 2.6.0 or I have no concern

version 3 really liked me
 
Most likely you are doing it wrong by using the base64 method. Problem with base64 is that php will only accept strict base64 and that could be a nightmare, it has happened before guys use the base64 method using a certain base64 converter and php says "nope, invalid base64". Thats why you can also use a conventional file object which doesn't needs the base64 conversion.

And the funny thing is that the API from Chevereto 2 is almost the same as the one in Chevereto 3 and regarding the base64 handling is exactly the same code. Exactly the same thing.

Lately I've been working with other APIs and mostly of those encourage users to rely in the file method (just a simple from multipart) rather than use the base64 and Chevereto does the same thing, if you can get this to work using base64 then use form file.

By the way, &source=file.jpg won't work. Ever. It must be &source=<base64> or source = multipart file.
 
Last edited:
my V2 script is
Code:
#!/bin/bash

function xup
{
image=$1;
ext=${image##*.}

if (echo $image | grep -iqE '^http(s)?://')
then
  curl_opt="upload=$image"
else
  curl_opt="upload=@$image"
fi

imgreel=`curl -s -X POST --header "Expect:" -F "$curl_opt" "http://images.pulsation.me.uk:81/api?format=txt&key=6vh*******"`

echo $imgreel | sed 's/:81//'
}

xup $1


my V3 should be

Code:
#!/bin/bash

function xup
{
image=$1;
ext=${image##*.}

if (echo $image | grep -iqE '^http(s)?://')
then
  curl_opt="source=$image"
else
  curl_opt="source=@$image"
fi

imgreel=`curl -s -X POST --header "Expect:" -F "$curl_opt" "http://images.pulsation.me.uk:81/CHEV3/api/1/upload/?format=txt&key=85d3a**************"`

echo $imgreel | sed 's/:81//'
}

xup $1

impossible but it works
 
Back
Top