// Add the CS Page Footer since this script is not in the CS Site context
application.ADF.ui.csPageResourceHeader(pageTitle="Add Subsite");
// loading jQuery
application.ADF.scripts.loadJQuery(noConflict=true);
application.ADF.scripts.loadADFLightbox();
if ( !StructKeyExists(request.params,"fieldname") )
errMsg = "A 'fieldname' url parameter is required!";
if ( LEN(TRIM(errMsg)) )
{
application.ADF.log.logAppend(msg=errMsg,logFile="ADF-cft-fileUploadForm-Error.log");
if ( !application.ADF.siteDevMode )
errMsg = "The required parameters were not passed in.";
// Render the Error Message
WriteOutput(errMsg);
exit; // exit instead of throw so it doesn't do a big CF error in iframe in the form
//throw(message=errMsg);
}
fqFieldName = request.params.fieldname;