Description:
In the manage - > workspace -> import -> import new file -> import file type select as slacks user csv -> then upload a pdf which is wrong and it is giving error but in the network section of browser you can see the endpoint (api/v1/getImportFileData) is calling unlimited time.
api response is like this -
{"waiting":true,"success":true}
Steps to reproduce:
- Go to manage
- Click on workspace
- Go to Import
- Click on Import new File button
- Select import file type as slacks user csv
- Select File type as upload
- Select a pdf file
- Then click on import
- Open the network tab
- You can see getImportFileData is calling again and again
Expected behavior:
If a user is selecting a wrong file it should prevent it and only one time getImportFileData api should call .
Actual behavior:
After user is selecting a wrong file it is preventing the file but network request is making again and again.
Server Setup Information:
- Version of Rocket.Chat Server: 8.1.0-develop
- License Type:
- Number of Users:
- Operating System: ubantu 24 LTS wsl
- Deployment Method:
- Number of Running Instances:
- DB Replicaset Oplog:
- NodeJS Version: 22.18.0 - x64
- MongoDB Version:7.0.16
Client Setup Information
- Desktop App or Browser Version: Browser Version
- Operating System:Linux
Additional context
I am attaching a screenshot for reference .

Description:
In the manage - > workspace -> import -> import new file -> import file type select as slacks user csv -> then upload a pdf which is wrong and it is giving error but in the network section of browser you can see the endpoint (api/v1/getImportFileData) is calling unlimited time.
api response is like this -
{"waiting":true,"success":true}
Steps to reproduce:
Expected behavior:
If a user is selecting a wrong file it should prevent it and only one time getImportFileData api should call .
Actual behavior:
After user is selecting a wrong file it is preventing the file but network request is making again and again.
Server Setup Information:
Client Setup Information
Additional context
I am attaching a screenshot for reference .