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

Notification

Icon
Error

Options
Go to last post Go to first unread
rolandk98  
#1 Posted : Tuesday, November 20, 2007 1:00:22 PM(UTC)
rolandk98

Rank: Member

Groups: Member
Joined: 11/20/2007(UTC)
Posts: 3

Hello there, is there a method that enables the user to choose in image uploader after it has been downloaded on the client computer to upload the original or a reduced size for "faster upload".

I know i can program it in php to do this before the appalet is downloaded to the client, but is there a thing that can be configured in image uploader that enables the end user to select whether they want to upload the original which can be 3 MB or just a 640x480 version for faster upload???
thx
Roland
Fedor  
#2 Posted : Sunday, February 10, 2008 7:01:32 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,570

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
Hello,

You can dynamically set whether to upload full size image or optimized thumbnails:

Code:
<label><input id="chbOptimize" type="checkbox" onclick="chbOptimize_click();">Upload optimized images</label>

<script type="text/javascript">
function chbOptimize_click(){
	var iu1 = getImageUploader("ImageUploader1"); 

	if (document.getElementById("chbOptimize").checked){
		iu1.setUploadThumbnail1FitMode("Fit");
		iu1.setUploadThumbnail1Width("Width");
		iu1.setUploadThumbnail1Height("Height");
	}
	else{
		iu1.setUploadThumbnail1FitMode("ActualSize");
	}
}
</script>


Please not this code is untested. If you need more detailed sample please let me know.

We also plan to include this sample in future releases.

Edited by user Monday, February 25, 2008 4:14:10 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
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.