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

New Upload Flow #88

Open
harshkhandeparkar opened this issue Sep 17, 2024 · 0 comments
Open

New Upload Flow #88

harshkhandeparkar opened this issue Sep 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@harshkhandeparkar
Copy link
Member

harshkhandeparkar commented Sep 17, 2024

  1. Currently uploaded papers are named course_code_exam_semester_year.pdf and stored in /iqps/uploaded/. This prevents multiple people from uploading the same paper. This also means that if someone uploads an incorrect paper or low quality paper, a different person cannot upload a better paper or correctly tagged paper.
  2. Instead, each new upload can be saved under /iqps/uploaded/unapproved/id.pdf
  3. Once approved, it can be moved to /iqps/uploaded/approved/course_code_exam_semester_year.pdf
  4. The frontend can warn uploader that a paper has already been uploaded (and maybe show preview) and allow them to choose to still upload if they believe their version is better.
  5. Addendum: Currently uploaded qp details are parsed directly from the filename in the coursecode_name_year_exam_semester.pdf format. This will have to be changed for two reasons:
    a. The papers are to be saved under id.pdf in the new flow.
    b. Invalid characters or dangerous characters (/) could be sent and could lead to the system crashing or saving in a different folder/overwriting etc.
    It would be best to send this data in a separate json.
@harshkhandeparkar harshkhandeparkar added the enhancement New feature or request label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant