separate file upload and text entry upload, each having separate submit buttons, that remain greyed out until something is attached or typed.
Students con the teacher by hitting submit without uploading a file, then claim the system malfunctioned, thereby not being charged with a late assignment.