Aurigma Forums
»
Upload Suite
»
Discussions – ActiveX/Java Uploader
»
FileMask, setUploadThumbnai2FitMode, MaxFileCount all giving fatal errors
Rank: Newbie
Groups: Member
Joined: 7/21/2010(UTC) Posts: 9
|
Hi Aurigma peeps, Am setting up the Java Uploader with PHP, however the following 3 methods are all coming back with Fatal Errors? Clues? These are not working... Code:$iu->MaxFileCount(20);
$iu->FileMask("*.jpg;*.gif;*.bmp;*.png;*.jpeg;*.tif");
$iu->setUploadThumbnai2FitMode("Width");
The full code... Code:
$iu = new ImageUploader('ImageUploader1', 650, 400);
//Configure appearance.
$iu->setPaneLayout('TwoPanes');
$iu->setShowDebugWindow(true);
$iu->setAllowRotate(false);
$iu->setBackgroundColor('#ffffff');
$iu->setActiveXControlEnabled(false);
$iu->setJavaAppletEnabled(true);
//$iu->MaxFileCount(20);
//$iu->FileMask("*.jpg;*.gif;*.bmp;*.png;*.jpeg;*.tif");
//Configure License Keys
$iu->setLicenseKey('XXXXXXXXXXXX');
//Configure thumbnail settings.
$iu->setUploadThumbnail1FitMode('Fit');
$iu->setUploadThumbnail1Width(120);
$iu->setUploadThumbnail1Height(120);
$iu->setUploadThumbnail1JpegQuality(100);
//Thumbnail 2 (thuumbs)
/*
$iu->setUploadThumbnai2FitMode("Width");
$iu->setUploadThumbnai2Width(300);
$iu->setUploadThumbnai2JpegQuality(100);
*/
//Configure URL files are uploaded to.
$iu->setAction('upload.php');
//Configure URL where to redirect after upload.
$iu->setRedirectUrl('../create/');
//Configure installation progress.
$iu->getInstallationProgress()->setVisible(true);
$iu->getInstallationProgress()->setProgressCssClass("ScreenStyle");
$iu->getInstallationProgress()->setInstructionsCssClass("ScreenStyle");
$iu->render();
Edited by user Monday, July 26, 2010 6:36:45 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Danny, Thanks for contacting us. I looked through your code. You experience this problem because of the syntax errors in the code. Please correct it: -
Code: $iu->setMaxFileCount(20);
Code: $iu->setFileMask("*.jpg;*.gif;*.bmp;*.png;*.jpeg;*.tif");
Code: $iu->setUploadThumbnail2FitMode("Width");
$iu->setUploadThumbnail2Width(300);
$iu->setUploadThumbnail2JpegQuality(100);
I corrected it and tried on my machine. All worked okay. If you have any problems or questions, please feel free to let me know. Edited by user Wednesday, July 28, 2010 12:37:48 PM(UTC)
| Reason: Not specified |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 7/21/2010(UTC) Posts: 9
|
|
|
|
|
Aurigma Forums
»
Upload Suite
»
Discussions – ActiveX/Java Uploader
»
FileMask, setUploadThumbnai2FitMode, MaxFileCount all giving fatal errors
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.