BCStudentSoftwareDevTeam / BCStudentSoftwareDevTeam/bcsr

Fix file upload path when parent directories have spaces

Open Beginner friendly
#98 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
CSS
Stars
0
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Issue Description: When a user uploads a syllabus under Courses, the backend creates a file path that may contain spaces. The final file path can incorrectly remove these spaces, causing the application to save the file to a nonexistent directory and resulting in a No such file or directory error.

Update the file path creation logic so that spaces in directory names are preserved when constructing upload paths.

Expected Behavior: Files should upload successfully even when the application or upload directory path contains spaces.

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the backend for the file upload path creation logic and reproduce the upload with a parent directory containing spaces. Preserve those spaces when constructing the path, then verify that a syllabus uploads successfully and no No such file or directory error occurs.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.