public async Task CompleteChunksUpload(CompleteChunksUploadModel model) { var cloned = model.CloneWithFileName(RandomFileName(model.FileName)); var result = await _filesComponent.CompleteChunksUpload(cloned); await AddRecord(result, FileModel.From(model)); }
public async Task <SaveFileResponseModel> CompleteChunksUpload(CompleteChunksUploadModel model) { var store = _storeFactory.CreateDefault(); var request = _mapper.Map <CompleteChunksUploadRequest>(model); var result = await store.CompleteChunksUpload(request); return(_mapper.Map <SaveFileResponseModel>(result)); }