You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
File name has multiple continuous white spaces between the words but file input preview combines multiple white spaces into single white space this causes confusion to the users.
To Reproduce
Create a new React app using Vite.
Install @dxc-technology\halstack-react package.
Keep a file name with multiple white spaces as ex: 20 LT Product Specs 1.pdf
select this file using file input component
It can be observed in file input preview 20 LT Product Specs 1.pdf file name is displaying like this.
It can be observed clearly there is a mismatch between actual file name and preview in file input component.
Expected behaviour
Actual file name should be displayed without affecting due to white spaces. Screenshots
Additional context
Add labels
file input
The text was updated successfully, but these errors were encountered:
Our team will review it as soon as possible. In the meantime, please make sure that you've provided all the necessary details to help us understand and address the issue effectively.
Feel free to contribute and participate in discussions!
You are correct, we are trimming the white spaces from the file names. We are going to fix this since it is not what we want.
It's generally not a good practice to have white spaces in file names, especially in technical or development contexts. While most modern systems can handle white spaces in file names, they can still cause issues in certain situations, such as:
Command-line operations: In terminal or script usage, spaces often need to be escaped or enclosed in quotes, which can be cumbersome and lead to errors.
URLs: Spaces in URLs are replaced with "%20," making the URL harder to read and manage.
Cross-platform compatibility: Some older systems or software may not handle spaces well, leading to potential problems when sharing files.
In any case, this is a fair request, and we will address it.
Describe the bug
File name has multiple continuous white spaces between the words but file input preview combines multiple white spaces into single white space this causes confusion to the users.
To Reproduce
@dxc-technology\halstack-react
package.20 LT Product Specs 1.pdf
20 LT Product Specs 1.pdf
file name is displaying like this.Expected behaviour
Actual file name should be displayed without affecting due to white spaces.
Screenshots
Additional context
Add labels
file input
The text was updated successfully, but these errors were encountered: