canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Fix for S3 Environment Error in Canvas-LMS Submission Reupload

Open imsujinpark opened this issue 1 year ago • 1 comments

I recently encountered an issue (referenced here) related to the state "attached_temporary" in Canvas-LMS when reuploading submission zip files. The problem arises from the if statement unless @attachment.state == :unattached, causing errors during the reupload process in an S3 environment.

To address this, I've added attached_temporary state into the if statement. With this adjustment, the code will no longer impede the reuploading of submission zip files in S3 environments, preventing errors specifically when "create_success" is encountered after uploading.

imsujinpark avatar Nov 14 '23 01:11 imsujinpark