Added error codes for file upload errors.