• 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

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