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

Notification

Icon
Error

Options
Go to last post Go to first unread
some_coder  
#1 Posted : Wednesday, September 30, 2009 6:43:00 AM(UTC)
some_coder

Rank: Member

Groups: Member
Joined: 3/14/2008(UTC)
Posts: 16

For Java Uploader 5.7.25 version when I try to rename HashCodeMD5_1 to md5 by using the step below it doesn't rename the field.
But it works fine for the ActiveX uploader.

iu.RenameField("HashCodeMD5_[ItemIndex]", "md5");

Any reason why or is it a bug ?
Tamila  
#2 Posted : Wednesday, September 30, 2009 1:18:42 PM(UTC)
Tamila

Rank: Advanced Member

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

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

If you want to rename field, you should do it in following way:
Code:
var iu = new ImageUploaderWriter("ImageUploader", 610, 500);
//...params...
//...other event listeners...

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

//...other event listeners...
iu.writeHtml();

function ImageUploader_BeforeUpload() {
	getImageUploader("ImageUploader").RenameField("HashCodeMD5_[ItemIndex]", "md5");
}


If you have any questions feel free to let us know.
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.