Fixed a bug that caused the server to crash if the upload file field was left blank.