File tree 2 files changed +8
-1
lines changed
view/base/web/js/form/element 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -190,4 +190,5 @@ CSV,CSV
190
190
"Please enter at least {0} characters.","Please enter at least {0} characters."
191
191
"Please enter a value between {0} and {1} characters long.","Please enter a value between {0} and {1} characters long."
192
192
"Please enter a value between {0} and {1}.","Please enter a value between {0} and {1}."
193
- "was not uploaded","was not uploaded"
193
+ "was not uploaded","was not uploaded"
194
+ "The file upload field is disabled.","The file upload field is disabled."
Original file line number Diff line number Diff line change @@ -348,6 +348,12 @@ define([
348
348
allowed = this . isFileAllowed ( file ) ,
349
349
target = $ ( e . target ) ;
350
350
351
+ if ( this . disabled ( ) ) {
352
+ this . notifyError ( $t ( 'The file upload field is disabled.' ) ) ;
353
+
354
+ return ;
355
+ }
356
+
351
357
if ( allowed . passed ) {
352
358
target . on ( 'fileuploadsend' , function ( event , postData ) {
353
359
postData . data . append ( 'param_name' , this . paramName ) ;
You can’t perform that action at this time.
0 commit comments