Skip to content

Conversation

@Valley-15
Copy link

This PR addresses a silent failure when file uploads exceed server capacity.

Changes:

  • Modified uploadFunction in utils.ts to be async.

  • Added a robust try...catch block that inspects error.status (413/417) and message strings.

  • Users now receive a specific "File too large" toast instead of a generic failure.

Closes #2929

@Valley-15
Copy link
Author

Hi @RitvikSardana,

I'm following up on this PR which addresses the silent file upload failures in issue #2929.

I have refactored the uploadFunction in utils.ts to be asynchronous and implemented a specific error handling block that detects 413 and 417 status codes. This ensures users receive a clear 'File too large' toast notification instead of no feedback.

The automated checks have passed successfully. Could you please take a look when you have a moment? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error not shown in frontend when video attachment exceeds maximum file size during ticket creation

1 participant