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

Notification

Icon
Error

Options
Go to last post Go to first unread
Itsacon  
#1 Posted : Thursday, July 10, 2008 11:40:04 PM(UTC)
Itsacon

Rank: Newbie

Groups: Member
Joined: 3/19/2008(UTC)
Posts: 5

Hi there.

I'm currently trying to use the SaveUploadList and LoadUploadList methods to configure a wizard consisting of multiple steps. First step is selection of the files (using image uploader), several steps follow in which specifications about the selected files are asked, and final step is a summary. If a user agrees with the summary, the files should be uploaded (but not before that).

To implement this, the first step uses the `SaveUploadList' method, and the last step has a hidden ImageUploader object, that loads the list of files using the LoadUploadList method.

I've managed to get this to work in the ActiveX component, but the Java component won't load the uploadlist on the final page. (but going back to the first step in the wizard, it will load without problems).

The documentation doesn't specify this, but I get the feeling if there is a connection between the Save/LoadUploadList methods and the page on which they are called (you can only load a list on the same page it was saved from). Is this the case, and if so, is there a way around it?

Dmitry  
#2 Posted : Sunday, July 13, 2008 6:33:04 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

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

Could you provide some additional information?
• What version of Image Uploader do you use?
• What OS, browser, and JRE?
• Could you post the complete script used to install Image Uploader on the page?
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Lavelle  
#3 Posted : Sunday, July 13, 2008 10:04:08 PM(UTC)
Lavelle

Rank: Newbie

Groups: Member
Joined: 6/22/2008(UTC)
Posts: 5

Hi

I´m also having trouble with the Java component regarding to the LoadUploadList method. On one page we upload thumbnails and save the uploadlist. Then few pages later we load all the upload lists that have been saved during current session (one at a time) and upload originals. This works fine with the ActiveX control but not with the java applet.

We are using the trial version of image uploader 5.1.10.0, for now, with full intention to upgrade to the full version, if we can get this to work :)

OS WinXP SP3, browser Firefox 2.0.0.15, JRE 1.6.0_05

function initializeiu(iuWidth, iuHeight, iuActiveXPath, iuJavaPath, iuPreviewThumbnailSize,
iuUploadThumbnailWidth, iuUploadThumbnailHeight, iuSessionID, iuFileMask,
iuAction, iuRedirectURL, iuSilentMode, iuProductName, iuUplList, iuLastList)
{
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("IUploader", iuWidth, iuHeight);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = iuActiveXPath;
iu.activeXControlVersion = "5,1,10,0";

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

IUControlType = iu.getControlType();

iu.addParam("GuiGraphicsVersion", "1");

iu.showNonemptyResponse = "off";

//Configure appearance.
iu.addParam("PaneLayout", "OnePane");
iu.addParam("AllowRotate", "false");
iu.addParam("ShowButtons", "false");
iu.addParam("PreviewThumbnailSize", iuPreviewThumbnailSize);
iu.addParam("ShowDescriptions", "false");
iu.addParam("SilentMode", iuSilentMode);
//iu.addParam("FolderView", "Details");
iu.addParam("UploadView", "Details");


//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Off");
iu.addParam("UploadThumbnail1Width", iuUploadThumbnailWidth);
iu.addParam("UploadThumbnail1Height", iuUploadThumbnailHeight);
iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("UploadThumbnail1CopyExif", "false");
iu.addParam("ExtractExif", "false");

//Configure behaviour
iu.addParam("UploadSourceFile", "false");
iu.addParam("UncheckUploadedFiles", "false");
iu.addParam("FileMask", iuFileMask);
iu.addParam("CacheGuiGraphics", "true");
iu.addEventListener("Progress", "iuprogress");
iu.addEventListener("Error", "ImageUploaderID_Error");
iu.addParam("MinFileSize", "15360");

//Configure upload settings.
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "3");
iu.addParam("AutoRecoverTimeOut", "5000");
iu.addParam("MaxConnectionCount", "1");

//Configure URL files are uploaded to.
iu.addParam("Action", iuAction);

//Configure URL where to redirect after upload.
iuredirURL = iuRedirectURL;
iu.addParam("RedirectUrl", iuRedirectURL);

//Localization
iulang_resources.addParams(iu);

iusessionid = iuSessionID;
iuproduct = iuProductName;
sUplList = iuUplList;
iLastListNr = iuLastList;

//iu.addEventListener("PackageBeforeUpload", "IUploader_PackageBeforeUpload");
iu.addEventListener("AfterUpload", "IUploader_AfterUpload");
iu.fullPageLoadListenerName = "fullPageLoad";

//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.addParam("LicenseKey", "NotPostingThisOne");
iu.writeHtml();
}

On fullPageLoad we start uploading the first uploadlist and on AfterUpload we reset the list that has been succesfully uploaded and start to upload the next one.

Edited by user Sunday, July 13, 2008 10:06:40 PM(UTC)  | Reason: Not specified

Dmitry  
#4 Posted : Monday, July 14, 2008 4:16:37 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

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

I noticed that you use session state management in your web application. If so you need to be aware that there should be some additional steps to make Image Uploader Java work correctly. Here is post PRB: Image Uploader for Java looses HTTP-only cookies giving overview of the problem and suggesting the way to resolve it.

Strictly speaking if you use session variables and pass them via HTTP-only cookies, you need to pass this cookie via Image Uploader. For example, the default name of this cookie in ASP.NET is ASP.NET_SessionId. So all you need to fix the problem is to pass this cookie in the way as it is described in the post. You should insert BeforeUpload event handler in your script and add the following:
Code:
function ImageUploader_BeforeUpload()
{
getImageUploader("ImageUploader").AddCookie('"ASP.NET_SessionId"=<%=Request.Cookies["ASP.NET_SessionId"].Value %>;');
}

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Lavelle  
#5 Posted : Monday, July 14, 2008 5:27:33 PM(UTC)
Lavelle

Rank: Newbie

Groups: Member
Joined: 6/22/2008(UTC)
Posts: 5

Thank you.

That worked for me.
Itsacon  
#6 Posted : Monday, July 14, 2008 8:33:20 PM(UTC)
Itsacon

Rank: Newbie

Groups: Member
Joined: 3/19/2008(UTC)
Posts: 5

Setting the cookies doesn't work for me.

My upload-config is rather standard. I change some language strings, set the redirect string, and do client-side zip compression on all uploads.

Currently using version 5.0.15.0. We have a license, but I'm doing this on a test-server, which runs the trial license (different domainname).

More specific problem description:

On Firefox, the page hangs when the final upload is started.
On Opera, the ImageUploader tool hangs with the `loading upload list' message. Submitting anyway will work (files are uploaded), but the called script isn't executed within the session scope (file called with RedirectUrl doesn't see the changes made during the upload).

I hope you can help.
Dmitry  
#7 Posted : Tuesday, July 15, 2008 5:18:20 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Itsacon wrote:
Setting the cookies doesn't work for me.
...
On Firefox, the page hangs when the final upload is started.
On Opera, the ImageUploader tool hangs with the `loading upload list' message. Submitting anyway will work (files are uploaded), but the called script isn't executed within the session scope (file called with RedirectUrl doesn't see the changes made during the upload).


Unfortunately it is hard to say something not seeing the script. Could you post the complete script used to install Image Uploader on the page along with the client functions used to manipulate upload lists? And it would be better if you provide us with the link to your page to test it.

If it is not convenient for you to post this information here on public forum, you may submit a case to our support system.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Lavelle  
#8 Posted : Wednesday, July 16, 2008 9:06:31 PM(UTC)
Lavelle

Rank: Newbie

Groups: Member
Joined: 6/22/2008(UTC)
Posts: 5

When I added the asp.net session cookie, things looked okay, because I only tested it with one upload list. Now when I try loading multiple uploadlists it doesn´t work any more. The first list is uploaded and images are sent correctly. But then

On firefox: next upload list is loaded and I can see it on the upload pane, but images won´t start to transfer

On opera: nothing appears on the upload pane and images won´t start to transfer

On both browsers Java console tells me that:
"Upload content restored successfully. (Items count: 4)."

And again, this works just fine with the ActiveX control.
Dmitry  
#9 Posted : Thursday, July 17, 2008 6:45:44 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

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

I reproduced the issue with SaveUploadList/LoadUploadList. It will be fixed in the next release. Unfortunately I cannot point to the exact date when it will be ready.
Sincerely yours,
Dmitry Sevostyanov

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.