Configuration
Alter CBWIRE's behavior with these nifty configuration options.

ColdBox.cfc

You can alter any default behavior by overriding settings in your config/ColdBox.cfc file.
// File: ./config/ColdBox.cfc
component{
function configure() {
moduleSettings = {
cbwire = {
"moduleRootURI" : "/modules/cbwire",
"throwOnMissingSetterMethod" : false,
"wiresLocation": "myWires",
"maxUploadSeconds": 5 * 60 // 5 minutes
}
};
}
}
Overriding the module settings is optional. All settings come with a default that is used if no overrides are provided. See Overriding Module Settings in the ColdBox documentation for additional reference.

moduleRootURI

The module root URI for CBWIRE that is used when referencing JavaScript assets. Defaults to /modules/cbwire.

throwOnMissingSetter

Set as true to throw a WireSetterNotFound exception if the incoming wire request tries to update a property without a setter on our component. Otherwise, missing setters are ignored. Defaults to false.

wiresLocation

The relative folder path where components are stored. Defaults to wires.

maxUploadSeconds

The maximum amount of time allowed for uploads to complete.
Export as PDF
Copy link
On this page
ColdBox.cfc
moduleRootURI
throwOnMissingSetter
wiresLocation
maxUploadSeconds