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
Hey @Valdanitooooo! I'm here to help you with any bugs or questions you have. Let's figure this out together!
The suffix of the xlsx file might be missing after uploading in the .files directory because the file.name attribute is used directly to create the file_path. If file.name does not include the suffix, the saved file will also lack the suffix.
Here is the relevant code snippet:
file_path=f"./tmp/{file.name}"
To ensure the suffix is included, you should verify that file.name contains the correct suffix when the file is uploaded. If it does not, you may need to manually append the suffix based on the file.type.
Describe the bug
Missing file suffix when uploading xlsx file.
To Reproduce
Steps to reproduce the behavior:
I have uploaded a txt and an xlsx file.
This is my .files directory, bcb2b22f-6611-454d-aa3a-d6b03efc993f without xlsx suffix
Expected behavior
The suffix of the xlsx file is retained after uploading
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: