• 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

I want not see uploaded images home page. how?

Soner

Chevereto Member
Hi.
I don't want see uploaded images homepage.
how to make this option?

And possible all uploads default privete? Also API uploads.

Thanks for reply.
 
You weill need to edit app/themes/index.php you can remove or replace anything you want.

To push all the uploads to private the recommendation will be to clone app/routes/route.json.php to app/routes/overrides/route.json.php and inject
PHP:
$_REQUEST['privacy'] = 'private';
just before
PHP:
$upload_options = array(
 
Thanks for fast reply. but I don't see "$upload_options = array(" "from app/routes/route.json.php" file.
 
Now, I copied "app/routes/route.json.php" file to app/routes/overrides/route.json.php
After edit "app/routes/overrides/route.json.php" and add "// Upload to website" before "$_REQUEST['privacy'] = 'private';" code.
saved and exit edit tool.
tried new upload on site and api.
unfortunatelly same. I see user and guest homepage last uploaded image.
 
That only works for albums and albums are only for registered users. So either you deny guest uploads or you inject all the uploads to a given user (not recommended).
 
I use desktop uploader ShareX with api connection.
Sharex upload all images Guest.
Possible add registered user upload Sharex?
 
Only if you inject the user id to that request. Note in route.api.php this line:

Code:
$uploaded_id = CHV\Image::uploadToWebsite($source, NULL, NULL);

The first param is the $source, second param is the $user_array and the third are additional params. In your case you need something like this for route.api.php:
Code:
$uploaded_id = CHV\Image::uploadToWebsite($source, ['id' => '<target user id goes here>'], ['privacy' => 'private']);
 
Back
Top