Currently working on an upload feature where I need to show the name of the uploaded file.
File Name.txt
The problem arises when the name is too lengthy, resulting in a display like this:
File Name Is Too Long...txt
I attempted to solve this by implementing ellipsis:
.file-name {
overflow: hidden;
text-overflow: ellipsis
}
However, I am facing issues with handling the file extension.