BCStudentSoftwareDevTeam / BCStudentSoftwareDevTeam/bcsr
Fix file upload path when parent directories have spaces
- 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