Aditya-138-12 / Aditya-138-12/CSE-Department-Student-Faculty-Visualization-Tool
Support Needed in the Student Upload Button
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
**Issue:** Multiple POST Requests Triggered by Single Button
**Description**:
The "Student Upload" button currently allows multiple POST requests to be sent to the server when the button is pressed multiple times quickly. This behavior results in duplicate uploads and inconsistent server state.
**Expected Behavior:**
The "Student Upload" button should accept and process only one POST request at a time, preventing duplicate submissions until the first request is completed.
**Steps to Reproduce:**
Navigate to the page with the "Student Upload" button.
Press the "Upload" button multiple times quickly.
Observe multiple POST requests being sent to the server.
**Proposed Solution:**
Disable the button immediately after the first click.
Re-enable the button only after the server response is received (success or failure).
Alternatively, implement a loading state to indicate ongoing request processing.
**Environment**:
Application Version: [Your version here]
Browser: [Browser details]
Operating System: [OS details]
Additional Context:
This issue leads to redundant server calls, increased server load, and possible data duplication. Fixing this will improve user experience and backend stability.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the page containing the Student Upload button and reproduce the issue by pressing Upload multiple times quickly while observing the POST requests. Done means the first click starts one request, further clicks are prevented until the server responds, and the button becomes usable again after success or failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100