Fix #726 Update slide upload instructions and error message for missing file extensions #1053
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated file upload instructions and improved error message for missing file extension
Summary
This PR improves the error message displayed when a user attempts to upload a file without including the file extension. The original error message was unclear, hence, it is updated it to be more specific and helpful. The new error message offers clear instructions on how to resolve the issue, including an example of a correct file name format. Additionally, the "Steps to upload a file" section has been updated to guide users on how to properly name their files.
Changes Made:
Updated error message: The error message now reads:
"The file name you provided is incompatible. File names should follow this format: filename.ext"
This provides clarity on the correct file naming convention.
Updated "Steps to upload a file" section:
The second line of the guide has been updated to:
"Provide the destination filename with extension. For example, sample.svs."
This emphasizes the need for users to include the file extension when naming their files.
Before:
After:
Motivation
The error message for missing file extensions was insufficient and potentially confusing for users. This update ensures the error message is actionable and provides users with the information they need to proceed with uploading files correctly. It fixes the open issue #726 , [UX] Unclear Error Message.
Testing
The new error message was tested by attempting to upload a slide without a file extension. The message now appears as intended, providing users with the necessary information to rectify the issue. Additionally, the updated instructions in the "Steps to upload a file" section are now present while uploading.
Questions
Are there any other areas in the upload process that could benefit from clearer instructions or error messages? I would appreciate any feedback on the changes made and suggestions for further improvements.