// the fields current value
currentValue = attributes.currentValues[fqFieldName];
// the param structure which will hold all of the fields from the props dialog
xparams = parameters[fieldQuery.inputID];
// get the directory path to store the document
// docPath = xParams.docPath;
// docURL = xParams.docURL;
// docTypes = xParams.docTypes;
// The fields current value
// currentValue = attributes.currentValues[fqFieldName];
// The param structure which will hold all of the fields from the props dialog
// xparams = parameters[fieldQuery.inputID];
// Get the directory path to store the document
//docPath = xParams.docPath;
//docURL = xParams.docURL;
//docTypes = xParams.docTypes;
// Get the properties from the config file
errorMsg = "";
// Config - UPLOADURL
if ( (StructKeyExists(server.ADF.environment[request.site.id].ptMultimedia, "UPLOAD_URL")) AND (LEN(server.ADF.environment[request.site.id].ptMultimedia.UPLOAD_URL)) )
docURL = server.ADF.environment[request.site.id].ptMultimedia.UPLOAD_URL;
else
docURL = "#request.subsiteCache[1].url#_cs_apps/ptMultimedia/uploads/";
// Config - UPLOADDOCTYPES
if ( (StructKeyExists(server.ADF.environment[request.site.id].ptMultimedia, "UPLOAD_FILE_TYPES")) AND (LEN(server.ADF.environment[request.site.id].ptMultimedia.UPLOAD_FILE_TYPES)) )
docTypes = server.ADF.environment[request.site.id].ptMultimedia.UPLOAD_FILE_TYPES;
else
docTypes = "";
// Config - MaxFileSize
if ( (StructKeyExists(server.ADF.environment[request.site.id].ptMultimedia, "MaxFileSize")) AND (LEN(server.ADF.environment[request.site.id].ptMultimedia.MaxFileSize)) )
MaxFileSize = server.ADF.environment[request.site.id].ptMultimedia.MaxFileSize;
else
MaxFileSize = "";
// Config - Media upload destination path
if ( (StructKeyExists(server.ADF.environment[request.site.id].ptMultimedia, "UPLOAD_PATH")) AND (LEN(server.ADF.environment[request.site.id].ptMultimedia.UPLOAD_PATH)) ) {
UPLOAD_PATH = server.ADF.environment[request.site.id].ptMultimedia.UPLOAD_PATH;
docPath = UPLOAD_PATH; }
else {
UPLOAD_PATH = "";
docPath = UPLOAD_PATH; }
if ( structKeyExists(request, "element") )
{
labelText = '';
tdClass = 'CS_Form_Label_Baseline';
}
else
{
labelText = '';
tdClass = 'cs_dlgLabel';
}
/*
doOnClick = "newWindow('uploadNew', 'http://cs5/demo/lightbox/multimedia/media_uploader.cfm?docPath=#docPath#&docURL=#docURL#&docTypes=#docTypes#&fieldName=#fqFieldName#','width=500,height=300,left=400,top=200,screenX=400,screenY=200');";
*/