var retHTML = ""; var catData = structNew(); // Check if are passed a valid category if ( LEN(arguments.category) ){ // Verify the category by getting the data catData = application.ptPhotoGallery.photoService.loadCategoryData(arguments.category, application.ptPhotoGallery.appConfig.upload_Path, application.ptPhotoGallery.appConfig.upload_URL); } application.ptPhotoGallery.scripts.loadADFLightbox();
Upload New Photo
Please select a category for the uploaded photo.

var retHTML = ""; var catData = StructNew(); var photoUploaded = false; var photoTempDirPath = application.ptPhotoGallery.appConfig.upload_path_temp & arguments.serverFileName; var photoTempURLPath = application.ptPhotoGallery.appConfig.upload_url_temp & arguments.serverFileName; application.ptPhotoGallery.scripts.loadADFLightbox();


Saving Photo

application.ptPhotoGallery.scripts.loadADFLightbox();
#uploadTemp.errorMsg#
Possible photo upload dimensions are the following:
   #catData.initialSizeArray[initSize_l].Values.title# = #catData.initialSizeArray[initSize_l].Values.width# X #catData.initialSizeArray[initSize_l].Values.height#


Browse for file:
Valid document types are: .#docType#
var retPhoto = StructNew(); var objImageInfo = StructNew(); var photoInitSizeMatch = false; var initSize_j = 1; var currPhotoDir = ""; var dirOp = ""; retPhoto.error = false; retPhoto.tempURLPath = ""; retPhoto.tempDirPath = ""; retPhoto.error = false; retPhoto.tempURLPath = arguments.tempURLPath; retPhoto.tempDirPath = arguments.tempDirPath; retPhoto.error = true; retPhoto.errorMsg = ""; The uploaded photo does not meet any of the dimension requirements.

Possible photo upload dimensions are the following:
   #arguments.categoryData.initialSizeArray[initSize_l].Values.title# = #arguments.categoryData.initialSizeArray[initSize_l].Values.width# X #arguments.categoryData.initialSizeArray[initSize_l].Values.height#
retPhoto.error = true; retPhoto.errorMsg = cfcatch.message;
var dataStruct = StructNew(); var createStatus = ""; var photoData = ""; var pageIDResult = ""; var jsonObj = server.ADF.objectFactory.getBean("json"); var retPhotoData = ""; // Build the data struct to create the photo record dataStruct.photoID = createUUID(); dataStruct.category = arguments.categoryID; dataStruct.photo = arguments.tempURL; //application.ADF.utils.dodump(dataStruct); dataStruct.title = "#arguments.categoryTitle# Photo"; // Call the CCAPI to create the photo record createStatus = application.ptPhotoGallery.photoDAO.photoCCAPI(dataStruct);

Error processing the photo. Please try again.

Close Dialog