akosbalasko / akosbalasko/yarle

Enable Longer File Names and Provide Warnings for Shortening / Truncation

Aberta
#652 1 comentário 1 reação 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
1.8k
Forks
111
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**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()](https://github.com/akosbalasko/yarle/blob/cf467e422458a04e3e7725b935c82d5f2cc8a970/src/utils/filename-utils.ts#L68)
```js
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).

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.