• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

API changes in route.api.php

novexx

Chevereto Member
Hey Rodolfo,
you change something in the api class? Because my customisation is gone 😀
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