canvas-lms
canvas-lms copied to clipboard
Fix for S3 Environment Error in Canvas-LMS Submission Reupload
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.