Fixed error when not file uploading