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