Fixes the issue by adding an explicit return in the method to check uploaded file type. curl still works because it does not explicitly specify content type as in Postman. The method is from current web interface's code in app/controllers/assignments_controller.rb; not sure why there's a missing return (linter auto-correction bug or careless mistake).
Postman auto-detected my file type as application/zip (can be manually specified as well), which is in the current list of supported types, so there's no compatibility issue.
coverage: 4.124%. remained the same when pulling 55493bec7a8fd043927ef61da38ca24329f8521c on sibinhho99:bugfix into c42fdf273a35cb8ddaea27cfa719f03584920a13 on WING-NUS:master.
Description
Fixes the issue by adding an explicit
return
in the method to check uploaded file type. curl still works because it does not explicitly specify content type as in Postman. The method is from current web interface's code inapp/controllers/assignments_controller.rb
; not sure why there's a missingreturn
(linter auto-correction bug or careless mistake).Postman auto-detected my file type as
application/zip
(can be manually specified as well), which is in the current list of supported types, so there's no compatibility issue.Related Issue
Motivation and Context
Fixes https://github.com/WING-NUS/SSID/issues/370
How Has This Been Tested?
Local testing with Postman
Screenshots (if appropriate):
Types of changes
Checklist: