Skip to content
Snippets Groups Projects
Commit 2d058ba7 authored by EL HAJJIOUI Nabil's avatar EL HAJJIOUI Nabil
Browse files

Fix archive upload

parent 39cf4bb1
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ public class IngestExternalController {
public Mono<RequestResponseOK> upload(
@RequestHeader(value = CommonConstants.X_ACTION) final String action,
@RequestHeader(value = CommonConstants.X_CONTEXT_ID) final String contextId,
@RequestParam("file") final MultipartFile file) {
@RequestParam(CommonConstants.MULTIPART_FILE_PARAM_NAME) final MultipartFile file) {
InputStream in = null;
try {
in = file.getInputStream();
......
......@@ -152,7 +152,7 @@ export class UploadSipService {
}
const formdata: FormData = new FormData();
formdata.append('file', file.slice(start, end), file.name);
formdata.append('uploadedFile', file.slice(start, end), file.name);
return new HttpRequest('POST', this.ingestApiService.getBaseUrl() + '/ingest/upload', formdata, { headers });
}
......
......@@ -119,7 +119,7 @@ public class IngestController extends AbstractUiRestController {
@RequestHeader(value = CommonConstants.X_CONTEXT_ID) final String contextId,
@RequestHeader(value = CommonConstants.X_CHUNK_OFFSET) final String chunkOffset,
@RequestHeader(value = CommonConstants.X_SIZE_TOTAL) final String totalSize,
@RequestParam final MultipartFile file) {
@RequestParam(CommonConstants.MULTIPART_FILE_PARAM_NAME) final MultipartFile file) {
LOGGER.debug("[{}] Upload File : {} - {} bytes", requestId, file.getOriginalFilename(), totalSize);
if (StringUtils.isEmpty(requestId)) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment