Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
dannychambers  
#1 Posted : Monday, July 26, 2010 6:06:16 PM(UTC)
dannychambers

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

Dmitry.Obukhov  
#2 Posted : Tuesday, July 27, 2010 11:24:27 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
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:

  1. Code:
     $iu->setMaxFileCount(20);

  2. Code:
     $iu->setFileMask("*.jpg;*.gif;*.bmp;*.png;*.jpeg;*.tif");

  3. 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.

dannychambers  
#3 Posted : Tuesday, July 27, 2010 9:11:58 PM(UTC)
dannychambers

Rank: Newbie

Groups: Member
Joined: 7/21/2010(UTC)
Posts: 9

Thanks, sorted now.
Users browsing this topic
Guest
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.