Skip to content

[FEAT] : Add Drag-and-Drop Visual Feedback for Upload Area #557

@NaitikVerma6776

Description

@NaitikVerma6776

Is your feature request related to a problem? Please describe.

Summary

Currently, the document upload area does not provide visual feedback when users drag files over it. This makes the drag-and-drop functionality less intuitive.

Proposed Solution

Add a highlighted state to the upload area when a file is dragged over it and display a simple message such as "Drop file here to upload".

Approach

  • Add drag event handlers (onDragEnter, onDragLeave, onDrop).
  • Track drag state using React state.
  • Apply conditional styling when a file is dragged over the upload area.

Acceptance Criteria

  • Upload area highlights during drag-and-drop.
  • Visual state resets after drag leave or drop.
  • Existing upload functionality continues to work correctly.

Benefits

Improves user experience.
Makes drag-and-drop support more discoverable.
Provides clear feedback during upload interactions.
Reduces confusion for new users.

GSSoC '26

  • Yes, I am participating in GirlScript Summer of Code and would like to build this.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvementgssocGirlScript Summer of Code 2026 issue/PR

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions