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

Notification

Icon
Error

Options
Go to last post Go to first unread
karmick  
#1 Posted : Wednesday, March 18, 2009 11:15:34 PM(UTC)
karmick

Rank: Member

Groups: Member
Joined: 1/24/2008(UTC)
Posts: 10

can some one help me out how to do this with UploadThumbnailAdd property.
My code :
function ImageUploader_BeforeUpload()
{
getImageUploader("ImageUploader1").UploadThumbnailAdd("Fit", 150, 150);
getImageUploader("ImageUploader1").setUploadThumbnailJpegQuality(100);
}

iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");

after this i am confused. I am getting confused on how to get the file name in upload.php to move the image to my destionation folder.for >= 3 thumbnail its working well.

one more thing,if i have to create more than three thumbnail then should i have to use only UploadThumbnailAdd or for three thumbanil i have to do as shown in demo pages and then for the fourth one i have to use UploadThumbnailAdd.

Please help me.
Thank you.
hope to see the reply soon.
Tamila  
#2 Posted : Thursday, March 19, 2009 2:36:28 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Member
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hello,

Your code snippet is right except setUploadThumbnailJpegQuality property. It has two parameters:
setUploadThumbnailJpegQuality(Index, value)

So in your code you should write as follows:
Code:
function ImageUploader_BeforeUpload()
{
      getImageUploader("ImageUploader1").UploadThumbnailAdd("Fit", 150, 150);
      getImageUploader("ImageUploader1").setUploadThumbnailJpegQuality(4, 100);
}

iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");


Quote:
I am getting confused on how to get the file name in upload.php to move the image to my destionation folder.

Could you please post the code snippet of your upload.php where you experience problem.

Quote:
if i have to create more than three thumbnail then should i have to use only UploadThumbnailAdd or for three thumbanil i have to do as shown in demo pages and then for the fourth one i have to use UploadThumbnailAdd.

If you use more than three thumbnails you should use at first our standard three thumbnails and UploadThumbnailAdd() method for the fourth and following thumbnails.
Aurigma Support Team

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.