Upload a file as a submission comment

DominicMacIsaac
Community Novice

Hello!

I am a TA trying to write a script to upload graded pdfs to a student's submission as a comment file. I have the file successfully uploading, and I have a comment going through with comment[text_comment] but the attached file with comment[file_ids][] does not seem to be going through. I have tried a bunch of random changes but can't seem to get it to work. I am a bit confused with submission comments upload a file documentation. Seems like theres a middle step to connect the file with the comment that I am missing or failing.

 

Thanks,

Dom

0 Likes