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



Go to last post Go to first unread
#1 Posted : Monday, July 2, 2007 12:46:41 PM(UTC)

Rank: Member

Groups: Member
Joined: 5/22/2007(UTC)
Posts: 7

Ok - I have been searching the forum but don't see the answer directly. I have recently lost my main programming company that installed the Imageuploader utility - which we absolutley love - but now I am left trying to figure things out. Many of our clients are trying to upload images which are great than 2M - sometimes up to 5M. Does Imageuploader give us the option to upload image files of this size and if so what is the parameter to set? Here is a piece of our source code...

<!-- Aurigma Image Uploader -->
<script language="javascript" src="iuembed.js"></script>
<script language="javascript">
var iu = new ImageUploaderWriter("ImageUploader", 770, 600);

// If you do not want to use ActiveX or Java version, set the appropriate
// property to false.
iu.activeXControlEnabled = true;
iu.javaAppletEnabled = true;

iu.activeXControlCodeBase = "ImageUploader4.cab";

// ... initialize params ...
iu.showNonemptyResponse = "off";

//Configure appearance and behaviour.
iu.addParam("PaneLayout", "TwoPanes");
//iu.addParam("TreePaneWidth", "205");
//iu.addParam("ShowButtons", "False");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("ShowDescriptions", "false");
iu.addParam("RememberLastVisitedFolder", "true");

//Configure colors.
iu.addParam("BackgroundColor", "#ADD8E6");
iu.addParam("SplitterLineColor", "#ADD8E6");
iu.addParam("TreePaneBackgroundColor", "#AFF3AF");
//iu.addParam("FolderPaneBackgroundColor", "#AFF3AF");
iu.addParam("UploadPaneBackgroundColor", "#ADD8E6");

//Exclude the source file from upload because only 
//resized versions of the photo will be sent.
iu.addParam("UploadSourceFile", "false");

//Configure settings of the optimized image. Optimized image
//is resized to 800x600 with JPEG quality = 90 and EXIF 
//metadata is preserved.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "800");
iu.addParam("UploadThumbnail1Height", "600");
iu.addParam("UploadThumbnail1JpegQuality", "90");
iu.addParam("UploadThumbnail1CopyExif", "true");

//Configure thumbnail settings.
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "101");
iu.addParam("UploadThumbnail2Height", "76");
iu.addParam("UploadThumbnail2JpegQuality", "90");

//Configure user quota restriction. In real-life application these values should be 
//loaded from server.
iu.addParam("MaxFileCount", "<?php echo $photos_left; ?>");
iu.addParam("MaxTotalFileSize", "25242880");

//Configure upload settings.
iu.addParam("FilesPerOnePackageCount", "-1");
iu.addParam("AutoRecoverMaxTriesCount", "10");
iu.addParam("AutoRecoverTimeOut", "10000");

//Configure URL files are uploaded to.
<?php $upload_params = "?property_ID=$property_ID&amp;photos_left=$photos_left&amp;account_ID=$account_ID"; ?>
iu.addParam("Action", "upload_multi.php<?php echo $upload_params; ?>");

//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "../manage_photos.php?property_ID=<?php echo $row_rsProperty['property_ID'];?>");

//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("ViewChange", "ImageUploader_ViewChange");
iu.fullPageLoadListenerName = "fullPageLoad";

// license
iu.addParam("LicenseKey", "6370-9437-8408-6352;7111-7775-6886-6903");

// As soon as you call this method, all necessary HTML code is inserted
// into the page on the current position.

Edited by user Friday, February 22, 2008 6:15:46 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Monday, July 2, 2007 6:53:03 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998


File size limitations are controlled by MaxFileSize and MaxTotalFileSize properties.

In you code I see that you use total file size limitations only:

iu.addParam("MaxTotalFileSize", "25242880")

Please check whether you don't do additional file size checks on server side.

Edited by user Friday, February 22, 2008 6:15:21 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.