mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
handle http status code 413 from the backend when an SAF file is larger than the limit
This commit is contained in:
@@ -97,9 +97,15 @@ export class BatchImportPageComponent {
|
|||||||
this.router.navigateByUrl(getProcessDetailRoute(rd.payload.processId));
|
this.router.navigateByUrl(getProcessDetailRoute(rd.payload.processId));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const title = this.translate.get('process.new.notification.error.title');
|
if (rd.statusCode === 413) {
|
||||||
const content = this.translate.get('process.new.notification.error.content');
|
const title = this.translate.get('process.new.notification.error.title');
|
||||||
this.notificationsService.error(title, content);
|
const content = this.translate.get('process.new.notification.error.max-upload.content');
|
||||||
|
this.notificationsService.error(title, content);
|
||||||
|
} else {
|
||||||
|
const title = this.translate.get('process.new.notification.error.title');
|
||||||
|
const content = this.translate.get('process.new.notification.error.content');
|
||||||
|
this.notificationsService.error(title, content);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -3255,6 +3255,8 @@
|
|||||||
|
|
||||||
"process.new.notification.error.content": "An error occurred while creating this process",
|
"process.new.notification.error.content": "An error occurred while creating this process",
|
||||||
|
|
||||||
|
"process.new.notification.error.max-upload.content": "One or more files exceeds the maximum upload size",
|
||||||
|
|
||||||
"process.new.header": "Create a new process",
|
"process.new.header": "Create a new process",
|
||||||
|
|
||||||
"process.new.title": "Create a new process",
|
"process.new.title": "Create a new process",
|
||||||
|
Reference in New Issue
Block a user