Aditya-138-12 / Aditya-138-12/CSE-Department-Student-Faculty-Visualization-Tool

Support Needed in the Student Upload Button

Ouverte
#1 0 commentaires 0 réactions 1 personne assignée Réclamée par @Aditya-138-12 Voir sur GitHub
bug good first issue help wanted
Langage dominant
JavaScript
Étoiles
3
Forks
2
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.