Files
Roman Pyrih 755af5f0b0 first commit
2026-03-03 13:20:21 +01:00

21 lines
431 B
JavaScript

__( 'Uploading...' ),
sticky: true,
} );
}
return args;
}
applyAfterCreate( data, args ) {
if ( args.options?.progress ) {
this.toast.hide();
}
return data;
}
async run() {
this.file = this.args.file;
if ( this.file.size > parseInt( window._wpPluploadSettings.defaults.filters.max_file_size, 10 ) ) {
throw new Error( __( 'The file exceeds the maximum upload size for this site.', 'elementor' );