File tree Expand file tree Collapse file tree
app/admin/admin-import-batch-page Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,9 +97,15 @@ export class BatchImportPageComponent {
9797 this . router . navigateByUrl ( getProcessDetailRoute ( rd . payload . processId ) ) ;
9898 }
9999 } else {
100- const title = this . translate . get ( 'process.new.notification.error.title' ) ;
101- const content = this . translate . get ( 'process.new.notification.error.content' ) ;
102- this . notificationsService . error ( title , content ) ;
100+ if ( rd . statusCode === 413 ) {
101+ const title = this . translate . get ( 'process.new.notification.error.title' ) ;
102+ const content = this . translate . get ( 'process.new.notification.error.max-upload.content' ) ;
103+ this . notificationsService . error ( title , content ) ;
104+ } else {
105+ const title = this . translate . get ( 'process.new.notification.error.title' ) ;
106+ const content = this . translate . get ( 'process.new.notification.error.content' ) ;
107+ this . notificationsService . error ( title , content ) ;
108+ }
103109 }
104110 } ) ;
105111 }
Original file line number Diff line number Diff line change 32573257
32583258 "process.new.notification.error.content" : "An error occurred while creating this process" ,
32593259
3260+ "process.new.notification.error.max-upload.content" : "The file exceeds the maximum upload size" ,
3261+
32603262 "process.new.header" : "Create a new process" ,
32613263
32623264 "process.new.title" : "Create a new process" ,
You can’t perform that action at this time.
0 commit comments