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



Go to last post Go to first unread
#1 Posted : Wednesday, February 14, 2007 11:30:09 PM(UTC)

Rank: Member

Groups: Member
Joined: 6/1/2006(UTC)
Posts: 6

I am using imageuploader 4.1 with the multiple description sample and persistsAspUpload. When I upload files with the FilesPerOnePackageCount=1, it only posts the title from the first image. It acks like there is a problem with the count for the title. I noticed the title box on that page is done through the addfield option in the javascript, I don't know if this has anything to do with it. If I set FilesPerOnePackageCount=10, and upload 20 images, the title from the 2nd ten mirrors the title from the 1st 10. If I disable or set FilesPerOnePackageCount=-1 then it works correctly. Is there another setting or workaround to fix this?

<script type="text/javascript">
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 600, 225);
iu.addParam("FileMask", "*.jpg");
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "5");
iu.addParam("AutoRecoverTimeOut", "5");

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.addParam("LicenseKey", "5607-9549-8159-8663"); 
iu.activeXControlCodeBase = "../ImageUploader4.cab";
iu.activeXControlVersion = "4,1,1,0";
iu.activeXControlEnabled = true;

//For Java applet only path to directory with JAR files should be specified (without file name).
//iu.javaAppletCodeBase = "../";
//iu.javaAppletCached = false;
//iu.javaAppletVersion = "";

iu.showNonemptyResponse = "OFF";

//Configure appearance.
//iu.addParam("AdditionalFormName", "Form2");
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("ShowUploadCompleteMessage", "False");
iu.addParam("FolderView", "Thumbnails");
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("ShowUploadListButtons", "true");
iu.addParam("ButtonRemoveFromUploadListText", "");
iu.addParam("ButtonRemoveAllFromUploadListText", "");
iu.addParam("ShowDescriptions", "False");
iu.addParam("EnableRotate", "false");
iu.addParam("ShowButtons", "False");

//Hide standard upload pane.
iu.addParam("FolderPaneHeight", "-1");

//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Off");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");

//Configure URL files are uploaded to.
iu.addParam("Action", "<%=GetUploadUrl()%>");

//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "<%=GetGalleryUrl()%>");

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

//Tell Image Uploader writer object to generate all necessary HTML code to embed 
//Image Uploader to the page.

Edited by user Wednesday, February 20, 2008 7:06:25 PM(UTC)  | Reason: Not specified

Thanks Mike
Alex Makhov  
#2 Posted : Thursday, February 15, 2007 8:14:07 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello Mike,

As I told you in my email to you:

If you set for example FilePerOnePackageCount=5, the first five files are taken and uploaded. Then the second five files and so on. You have to update your upload processing code to know which five-files group is processed because now it does not know and saves the descriptions of the second five files over the descriptions of first five files.

For more info please read POST Field Reference (pay attention to the PackageIndex field description) and FilesPerOnePackageCount property reference.

Edited by user Wednesday, October 29, 2008 12:07:41 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.