• 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
  • 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

Full name of the photo is not displayed

Version
3.20.17
PHP version
7.4.28
Database driver
MySQL
Database version
8.0.25
Web browser
Chrome

pebro

Chevereto Member
▶ Reproduction steps
I'm uploading photos to the web that have a file name of 150-190 characters.

But only part of the whole name is displayed on the web, and it is truncated to +/- 100 characters. How to fix this?


😢 Unexpected result

The full name of the original file is not displayed.
 
I changed the image_title to 255. But unfortunately it didn't help. The name of uploaded images is limited to 100 characters. I do not understand why. Are there any restrictions elsewhere?
1657980407936.png
 
@pebro You can remove the 100 limit by changing the code found in:

/app/src/Legacy/Classes/Image.php

FIND: (Around line 996 - I have my own alterations to this file)

Code:
$image_insert_values['title'] = mb_substr($image_insert_values['title'] ?? '', 0, 100, 'UTF-8');

Change 100 to 255

Code:
$image_insert_values['title'] = mb_substr($image_insert_values['title'] ?? '', 0, 255, 'UTF-8');

I see you have already altered you SQL table so there's no need to make any changes there. For anyone else needing to allow bigger filenames, alter your SQL table:

Code:
ALTER TABLE `chv_images` CHANGE `image_name` `image_name` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;

Tested and works.
 
Back
Top