Skip to content

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

Description

@DevROHIT11

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions