Increase the length of the attachment name
The attachment name has an irritatingly short character allowance of 32 characters.
To change this you need to make a change to the database structure and the controlling php file.
In the database > ps_attachment_lang - go to table structure and change the name attribute to say 128 characters.
To change the controller - go to /src/Core/Domain/Attachment/Configuration/AttachmentConstraint.php
change the following to a value LESS than you set in the database -as below
/**
* Maximum length for name (value is constrained by database)
*/
public const MAX_NAME_LENGTH = 120;
- Hits: 5