Same issue can be replicated in EXIM of Fulfillment App, Import App.
Current behavior
The toast message only appears after the first failed upload attempt.
After the second failed attempt, the first file's name remains in the field instead of updating to the second file.
Expected behavior
A toast message should be generated for every failed upload attempt, regardless of how many files are uploaded.
After the second failed upload, the name of the second file should appear in the file upload field.
Steps to reproduce the issue
Navigate to the 'Draft Bulk' page.
Upload an incorrect CSV file (which should fail).
Observe that a toast message is displayed indicating the upload failure.
Now, upload another incorrect CSV file.
Observe that no toast message is generated for the second failed attempt.
Check the file name field and observe that the name of the first file still appears instead of the second file.
Note
Same issue can be replicated in EXIM of Fulfillment App, Import App.
Current behavior
The toast message only appears after the first failed upload attempt. After the second failed attempt, the first file's name remains in the field instead of updating to the second file.
Expected behavior
A toast message should be generated for every failed upload attempt, regardless of how many files are uploaded. After the second failed upload, the name of the second file should appear in the file upload field.
Steps to reproduce the issue
Navigate to the 'Draft Bulk' page. Upload an incorrect CSV file (which should fail). Observe that a toast message is displayed indicating the upload failure. Now, upload another incorrect CSV file. Observe that no toast message is generated for the second failed attempt. Check the file name field and observe that the name of the first file still appears instead of the second file.
Environment details
App version : v2.1.0 App environment : UAT
Additional Information
https://jam.dev/c/a3d20694-5d80-4001-83d6-89ec44ad9bf3