• 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

How to set all uploaded images as NSFW by default?

tobi116

Chevereto Member
Can you let me know which value need to be edited in anywhere up loader to set all uploads NSFW by default?
 
You have several ways to achieve this. One of them is via route.json.php, change this:

PHP:
$uploaded_id = CHV\Image::uploadToWebsite($source, $logged_user, $_REQUEST);

To this:

PHP:
$_REQUEST['nsfw'] = 1;
$uploaded_id = CHV\Image::uploadToWebsite($source, $logged_user, $_REQUEST);
 
Back
Top