application.ptmultiMedia.scripts.loadJQuery(); application.ptmultiMedia.scripts.loadJQueryUI(); application.ptmultiMedia.scripts.loadADFlightbox(); // Set the process flag processForm = 0; // Check if the form has been submitted if ( structKeyExists(request.params, "parameters") ) { processForm = 1; } // Set the session vars before we submit the form if (processForm EQ 0) { // Var to store the struct to get the values after the form is processed session.ptmultiMedia.addFormStruct = StructNew(); // Lightbox action for rendered link if ( (structKeyExists(request.params, "lbaction")) AND (request.params.lbaction EQ "refreshParent") ) tmp = StructInsert(session.ptmultiMedia.addFormStruct, "lbaction", "refreshParent"); else tmp = StructInsert(session.ptmultiMedia.addFormStruct, "lbaction", "norefresh"); // Check if we have a callback function if ( (structKeyExists(request.params, "callback")) ) tmp = StructInsert(session.ptmultiMedia.addFormStruct, "callback", request.params.callback); else tmp = StructInsert(session.ptmultiMedia.addFormStruct, "callback", ""); } // Set the photo UID request.params.photoID = createUUID(); // Default Title if ( NOT StructKeyExists(request.params, "title") ) request.params.title = ""; CD_DialogName = request.params.title; CD_Title=CD_DialogName; CD_IncludeTableTop=1; CD_CheckLock=0; CD_CheckLogin=1; CD_CheckPageAlive=0; APIPostToNewWindow = false;
Saving ...
pageIDResult = application.ptmultiMedia.photoService.handlePhotoFormSubmit(form);

Click here to close and refresh. Click here to close and refresh.

Photo Upload Error!
Click here to close and refresh.

Error Occcured.