Skip to content

Umba Ilunga Jeannick 202025800049 & Mvondo Jean Claude Wilfried 20202…#57

Open
Jeannick94 wants to merge 1 commit intomasterfrom
Jeannick/Wilfried_lrr
Open

Umba Ilunga Jeannick 202025800049 & Mvondo Jean Claude Wilfried 20202…#57
Jeannick94 wants to merge 1 commit intomasterfrom
Jeannick/Wilfried_lrr

Conversation

@Jeannick94
Copy link
Contributor

Umba Ilunga Jeannick 202025800049 & Mvondo Jean Claude Wilfried 202025800038 Fixed bug No=74 unable to update attachment for posted assignments.

http://118.25.96.118/bugzilla/show_bug.cgi?id=74

Failed to update an attached file in a new assignment

I (as an instructor) posted a new assignment in the course (CSC322) - Software Project Management, titled ExamAnswerSubmission-Makeup (Individual).

I attached two files, StudentNumber-AnswerSheet.txt and ExamInstructions.txt.
I found an error in StudentNumber-AnswerSheet.txt, i.e., "ExamAnswerSubmission-ExamAnswerSubmission-Makeup" where "ExamAnswerSubmission" had been repeated twice.

Therefore, I tried to replace the old StudentNumber-AnswerSheet.txt with a new, correct one by clicking the Edit link and uploading a new StudentNumber-AnswerSheet.txt again. But I failed -- StudentNumber-AnswerSheet.txt remained the same.

…5800038 Fixed bug No=74 unable to update attachment for posted assignmentss.
@spm2020spring
Copy link
Member

spm2020spring commented Dec 24, 2020

@Jeannick94

Thanks. Could you explain a bit about your modification? It would be great if you could add a few comments to your new code.

-Hui

Comment on lines +134 to +137
if($_FILES['attachment1']['name']!=""){ $targetfile = "/".$title."/".$_FILES['attachment1']['name']; }
if($_FILES['attachment2']['name']!=""){ $targetfile2 = "/".$title."/".$_FILES['attachment2']['name']; }
if($_FILES['attachment3']['name']!=""){ $targetfile3 = "/".$title."/".$_FILES['attachment3']['name']; }
if($_FILES['attachment4']['name']!=""){ $targetfile4 = "/".$title."/".$_FILES['attachment4']['name']; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jeannick94

Where will the attachment be stored on the server/computer?

-Hui

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spm2020spring

Happy new year Sir,

On the computer/server, the attachment will be stored in the "Lab_Report_Assignments" folder, and for more details, you can open the following attachments:
LRR3
LRR4

-Jeannick U.

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

Successfully merging this pull request may close these issues.

2 participants