Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }