• Purchasing a license grants permission to use the software and to get Tech Support. A license purchase doesn't grant customization support.

mark upload as NSFW with api

blackjack

Network license
License owner
Joined
Nov 23, 2016
Messages
50
Points
58
hi,

how can i mark a upload with the api as nsfw upload? can you explain it?

thanks
 

novexx

Founder license
License owner
Joined
Dec 7, 2010
Messages
43
Points
58
If you change in routes.api.php the code to that:

$uploaded_id = CHV\Image::uploadToWebsite($source, $_REQUEST['username'], $_REQUEST['params']);

You can set in a requests the $params['nsfw'] = true; and the image should be nsfw marked.
 

imgtaxi

New Member
Joined
Jul 20, 2019
Messages
1
Points
3
$params = array(
'nsfw' => '1',
'show_nsfw_listings' => '1',
'album_id' => '7'
);

$uploaded_id = CHV\Image::uploadToWebsite($source, 'username',$params);
 
  • Like
Reactions: Rodolfo