Error uploading assignment file

If you are getting error like this

ERROR: File you upload must be valid file type (PDF, XLSX, JPEG), and under 5MB(s)! 

The issue is because the server is detecting the file extension as blank.

Please contact your web host and make sure any of the following function exists:

finfo_file

mime_content_type

class finfo