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

[2.4] API.php issue with format=redirect

Status
Not open for further replies.

rain

Chevereto Member
Using my extension to remote upload (url : api.php?&key=mykey&format=redirect&upload=imgurl), it gives me a 404, the viewer URL is wrong : /v/ID with ID being the total number of files hosted.
 
open api.php and replace this:
PHP:
$redirect_url = __CHV_BASE_URL__.__CHV_VIRTUALFOLDER_IMAGE__.'/'.$api_upload->image_info['image_id'];

With this:
PHP:
$redirect_url = __CHV_BASE_URL__.__CHV_VIRTUALFOLDER_IMAGE__.'/'.$api_upload->image_info['image_id_public'];
 
Status
Not open for further replies.
Back
Top