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

[5.x] Files Fieldtype: Don't truncate existing filename #11055

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request prevents the filenames of existing files from being truncated in the Files fieldtype.

For example: in the importer, I'm passing the basename of the file to the Files fieldtype, allowing users to see the currently uploaded file and replace it, if needed.

I thought that since we're not truncating filenames in the Upload component, we don't need to be here. Although, I might be wrong.

Before

CleanShot 2024-11-05 at 14 35 23

After

CleanShot 2024-11-05 at 14 45 42

@duncanmcclean duncanmcclean marked this pull request as ready for review November 5, 2024 14:46
@jasonvarga
Copy link
Member

Weird. No idea why we would be truncating like that. 🤔

@jasonvarga jasonvarga merged commit 2a63aef into 5.x Nov 5, 2024
16 checks passed
@jasonvarga jasonvarga deleted the dont-truncate-existing-filename branch November 5, 2024 16:50
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

Successfully merging this pull request may close these issues.

2 participants