Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix File Upload Visibility and Enhance UX #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Oluwatobi02
Copy link

Description

This pull request addresses an issue where uploaded files were not visibly indicated in the UI, even though the file upload functionality was working as intended. The changes ensure that users receive feedback when a file is uploaded successfully.

Changes Made

  1. File Upload Feedback:

    • Added a visual indicator to display the name of the uploaded file below the file input.
    • This ensures users are aware their file has been successfully selected.
  2. Bug Investigation and Confirmation:

    • Verified that the file upload functionality was working but lacked a clear UI indication.
    • Resolved the gap by enhancing the interface.
  3. Styling Enhancements:

    • Added a .file-name-display class to style the file name display for better user visibility.
  4. JavaScript Updates:

    • Implemented logic to update the file name display upon file selection or drag-and-drop.
    • Ensured the display clears appropriately when no file is selected.

How to Test

  1. Open the application in a browser.
  2. Select a file using the file input or drag and drop a file into the upload area.
  3. Verify that the file name is displayed below the input field after selection.
  4. Clear the file input and confirm that the file name display is cleared.

Notes

  • This fix improves the user experience by making the file upload process more transparent.
  • No changes were made to the actual file upload functionality, which was working as expected.

Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
share-bits-wirelessly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2025 4:36pm

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.

1 participant