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

Handle Missing File Uploads in /submit Route (app.py) #97

Open
DevROHIT11 opened this issue Nov 4, 2024 · 1 comment
Open

Handle Missing File Uploads in /submit Route (app.py) #97

DevROHIT11 opened this issue Nov 4, 2024 · 1 comment

Comments

@DevROHIT11
Copy link

Description:
The filename variable is only defined if a file is uploaded, which can lead to an UnboundLocalError when the add_registration procedure is called without an uploaded file.

Suggested Fix:

  1. Initialize filename to None at the start of the file upload logic.
  2. Update the stored procedure to handle NULL values for filename or provide a default value.
Copy link

github-actions bot commented Nov 4, 2024

👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our Fest Registration team will review it shortly. Stay tuned!

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

No branches or pull requests

1 participant