Skip to content

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

Open
@AltoRetrato

Description

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions