Programmatically adding FMS files
A question was recently asked on the mailing list on how to programmatically add FMS files in Shado7.0.2. The following code snippet shows how this can be done.
<cfscript>
// Call the init method on fmscontext and pass in the filestore and the control mode
oFMSContext = createObject("component","shadomx.apps.fms.fmscontext").init(filestore="default",controlmode=true);
oFMSFile = createObject("component","shadomx.apps.fms.file");
// Call the addFile method. Note: in this version of Shado the title attribute is required.
stFile = oFMSFile.addFile(uploadField="file_1",filestore="default",path="/shadoinfo/images",title="");
</cfscript>
Comments
There are no comments for this page as yet.
print page
