• 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.

API changes in route.api.php

novexx

Chevereto Member
Hey Rodolfo,
you change something in the api class? Because my customisation is gone :D
My changes using the user id to upload the pictures to the correct account.

But thanks that you improve the api and make it more easier to use it.

if (isset($_REQUEST['username']) && isset($_REQUEST['params'])) {
$uploaded_id = CHV\Image::uploadToWebsite($source, $_REQUEST['username'], $_REQUEST['params']);
} elseif (isset($_REQUEST['username'])) {
$uploaded_id = CHV\Image::uploadToWebsite($source, $_REQUEST['username']);
} else {
$uploaded_id = CHV\Image::uploadToWebsite($source);
}

I hope the api will improved in v4.
thanks
 
No, I didn't touched route.api.php. But, you should always put your customized routes under app/routes/overrides/

Otherwise your changes will be reverted by the update script.
 
Back
Top