The submitImage function does not handle errors properly. If the image upload fails, it will log an error message to the console, but it will not notify the user.
👟 Reproduction steps
To trigger the bug :
Fill out the form with valid data.
Attempt to upload an invalid or corrupted image file (e.g., a text file renamed to .jpg).
Observe the console or error logs.
Verify that the image upload fails and an error message is logged to the console.
Check the UI for any error notifications or messages.
👍 Expected behavior
1.The error should be caught and displayed to the user through the toast notification system or an inline error message
The user should be notified that the image upload failed
👎 Actual Behavior with Screenshots
The error is caught by the catch block, but only logged to the console.
No user-friendly error message is displayed to the user.
The form submission process may continue without notifying the user of the image upload failure
OS name
MacOS
browser name
Chrome
npm version
No response
node version
No response
📃 Provide any additional context for the Bug.
test with network errros, server-side errors, validation errors
👀 Have you spent some time to check if this bug has been raised before?
📜 Description
The submitImage function does not handle errors properly. If the image upload fails, it will log an error message to the console, but it will not notify the user.
👟 Reproduction steps
To trigger the bug :
👍 Expected behavior
1.The error should be caught and displayed to the user through the toast notification system or an inline error message
👎 Actual Behavior with Screenshots
OS name
MacOS
browser name
Chrome
npm version
No response
node version
No response
📃 Provide any additional context for the Bug.
test with network errros, server-side errors, validation errors
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
Yes I am willing to submit a PR!