You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assignments usually require students submit files of a specific type and, just as often, students screw this up. This results in confusion over the output or graders having to figure out how to open a file of unknown type. This is attempting to solve this issue by operationalizing #13 in practical terms.
Simple heuristics should be able to detect most of the upload errors for the likely file types
PDF: Files start with the ASCII characters %PDF
ZIP: Files start with their local file header signature 0x04034b50 (encoded in little-endian)
DOCX: Since these are structured ZIP files, checking for the ZIP header should catch most issues
Source Code: Files will only contain printable characters & whitespace
On the Assessment Handin tab, under the file name, include a checkbox labeled Check file type on upload. Enable a drop-down box with the 4 options above when the checkbox is checked. If the box is checked, run the heuristic on each submitted file. If the file fails the check, refuse the submission and go back to the submission page (with a prominent error message) so that they can try again.
The text was updated successfully, but these errors were encountered:
Assignments usually require students submit files of a specific type and, just as often, students screw this up. This results in confusion over the output or graders having to figure out how to open a file of unknown type. This is attempting to solve this issue by operationalizing #13 in practical terms.
Simple heuristics should be able to detect most of the upload errors for the likely file types
%PDF
0x04034b50
(encoded in little-endian)On the Assessment
Handin
tab, under the file name, include a checkbox labeledCheck file type on upload
. Enable a drop-down box with the 4 options above when the checkbox is checked. If the box is checked, run the heuristic on each submitted file. If the file fails the check, refuse the submission and go back to the submission page (with a prominent error message) so that they can try again.The text was updated successfully, but these errors were encountered: