/// <summary> /// 删除 服务器上的文件。操作完成后 根据_file删除相应的数据库记录 /// </summary> public void CancelUpload() { if (_fileUploader != null && this.State == Constants.FileStates.Uploading) { _fileUploader.CancelUpload(); } }
public void CancelUpload() { if (this.FileStream != null) { this.FileStream.Close(); this.FileStream.Dispose(); this.FileStream = null; } if (_fileUploader != null && this.State == Enums.FileStates.Uploading) { _fileUploader.CancelUpload(); } _fileUploader = null; }