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

[FIX] truncate filename in upload progress bar if too long #8552

Closed
wants to merge 4 commits into from

Conversation

joesitton
Copy link
Contributor

@RocketChat/core

Closes #6868

@@ -28,7 +28,7 @@ FileUploadBase = class FileUploadBase {
}

getFileName() {
return this.meta.name;
return this.meta.name.substring(0, 50);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda worry about just doing this, as this happens server side too. Might be better to use something client side to keep it from overflowing?

@rodrigok
Copy link
Member

rodrigok commented Nov 7, 2017

That is not the correct way to fix the issue. It's a layout issue and shoulds use CSS to truncate the text.

I'll close this PR, feel free to reopen it with a CSS solution 😄

@rodrigok rodrigok closed this Nov 7, 2017
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.

Upload with very long filenames
3 participants