Skip to content
Snippets Groups Projects
Unverified Commit a2c47d5b authored by Benaissa BENARBIA's avatar Benaissa BENARBIA Committed by GitHub
Browse files

fix error on uploadin others types of ingests (#341)

parent a1296965
No related branches found
No related tags found
1 merge request!51Merge mis a jour vitam-ui
......@@ -139,7 +139,7 @@ export class UploadComponent implements OnInit {
return;
}
this.uploadService.uploadIngestV2(this.tenantIdentifier, this.fileToUpload, this.fileToUpload.name).subscribe(
this.uploadService.uploadIngestV2(this.tenantIdentifier, this.fileToUpload, this.fileToUpload.name, this.contextId).subscribe(
() => {
this.dialogRef.close();
this.displaySnackBar(true);
......
......@@ -93,10 +93,10 @@ export class UploadService {
return this.httpClient.request(new HttpRequest('POST', this.ingestApiService.getBaseUrl() + '/ingest/upload-v2', file, options));
}
public uploadIngestV2(tenantIdentifier: string, file: Blob, fileName: string): Observable<IngestList> {
public uploadIngestV2(tenantIdentifier: string, file: Blob, fileName: string, type: string): Observable<IngestList> {
let progressPercent = 0;
this.addNewUploadFile(fileName, new IngestInfo(fileName, file.size, 0, IngestStatus.WIP));
this.uploadStreaming(tenantIdentifier, 'DEFAULT_WORKFLOW', 'RESUME', file, fileName).subscribe(
this.uploadStreaming(tenantIdentifier, type, 'RESUME', file, fileName).subscribe(
(data) => {
if (data) {
switch (data.type) {
......
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