Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Longer File Names and Provide Warnings for Shortening / Truncation #652

Open
AltoRetrato opened this issue Oct 3, 2024 · 1 comment

Comments

@AltoRetrato
Copy link

I noticed that some long file names are shortened after being imported, but often there is important information in file names that users do not want removed. I understand that there are file name length limitations on many systems, but if it seems the current limit for file attachments it a mere 50 characters set as a constant in filename-utils.ts / getResourceFileProperties()

const fileNamePrefix = resource['resource-attributes']['file-name'].substr(0, 50);

It would be much more useful if the value could be user defined, with 0 for no truncation. It would also be useful to have in the log the original file name and the truncated one (so the user can decide to manually rename a few files if they want to).

Copy link

github-actions bot commented Oct 3, 2024

Yihaa, thank you for reporting me this issue and to let me improve Yarle!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant