• 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.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.

How to shorten the random file naming?

atreides57

Chevereto Member
As per my title above, I would like to know how I can tweak the script to generate no more than 6 random characters for the image file name.

Is this possible?

Thanks in advance! 🙂
 
You mean the imagefilename.jpg or the /image_id ?

For the image file name you need to edit class.upload.php and change this:
PHP:
$name = generateRandomString(rand(5, 10));

To this:
PHP:
$name = generateRandomString(6);
 
Back
Top