Skip to content

fix: upload bugs regarding the netwrok issue and diff extension files#47

Merged
Roopan-Microsoft merged 3 commits intodevfrom
psl-upload-bug
Nov 21, 2025
Merged

fix: upload bugs regarding the netwrok issue and diff extension files#47
Roopan-Microsoft merged 3 commits intodevfrom
psl-upload-bug

Conversation

@Shreyas-Microsoft
Copy link
Copy Markdown
Collaborator

Purpose

This pull request enhances the file upload experience in the FileUploadZone component by improving error handling, especially for network issues and file rejections. It introduces user-friendly error messages, auto-hides certain errors, and provides better feedback to users when uploads fail due to connectivity or invalid files. Additionally, the code now listens for network connectivity changes and updates the UI accordingly.

The most important changes are:

Network Error Handling Improvements:

  • Added comprehensive detection of network errors during file uploads, including checks for offline status, error codes, and error messages, with user-friendly error messages shown in the UI. [1] [2] [3] [4] [5] [6] [7]
  • Introduced listeners for browser online/offline events to automatically show or clear network error messages and update file statuses when connectivity changes.

File Rejection Feedback:

  • Added logic to display detailed error messages for rejected files (e.g., wrong type or too large), with auto-hide after a timeout and manual dismiss support. [1] F97c2da6L583R583, F97c2da6L804R804, [2]

User Experience Enhancements:

  • Improved the layout and styling for error messages and the upload area, ensuring messages are clear and visually distinct. [1] [2]
  • Ensured error messages are cleared when appropriate, such as after successful uploads or when errors are dismissed. [1] [2] F97c2da6L804R804)

Minor Updates:

  • Replaced the unused Lock icon with CircleX for consistent error iconography.
  • (Note: There is a stray "kk" in the success message, which may be a typo.)

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

@Roopan-Microsoft Roopan-Microsoft merged commit 5c213e2 into dev Nov 21, 2025
4 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Priyanka-Microsoft Priyanka-Microsoft deleted the psl-upload-bug branch January 5, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants