Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions models/Component.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -1005,11 +1005,17 @@ component output="true" accessors="true" {
);
// Check if the component has an onUploadError method and invoke it
if ( structKeyExists( this, "onUploadError" ) ) {
invoke( this, "onUploadError", {
local.invokeParams = {
property: arguments.prop,
errors: arguments.errors,
multiple: arguments.multiple
} );
};
// Include errors parameter - check if it exists in arguments scope to handle null values passed via invoke
if ( structKeyExists( arguments, "errors" ) ) {
local.invokeParams.errors = arguments.errors;
} else {
local.invokeParams.errors = javaCast( "null", "" );
}
invoke( this, "onUploadError", local.invokeParams );
}
}

Expand Down