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

Notification

Icon
Error

Options
Go to last post Go to first unread
wbakkar  
#1 Posted : Friday, April 4, 2008 1:13:12 AM(UTC)
wbakkar

Rank: Newbie

Groups: Member
Joined: 3/24/2008(UTC)
Posts: 3

did anyone ever have the following problem:

-----------------------------------------------------

i'm integrating the aurigma image uploader with my company's product.

the action url has parameters set in it.

everytime i try to upload some image, the first request doesn't have the list of parameters set in the "action".

when the upload fails, the uploader tried again.

on the second attempt, all parameters are set correctly, and the upload is successful.

Fedor  
#2 Posted : Friday, April 11, 2008 12:18:28 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,567

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
Could you post the code you use?
Best regards,

Fedor Skvortsov

wbakkar  
#3 Posted : Monday, April 14, 2008 6:33:40 PM(UTC)
wbakkar

Rank: Newbie

Groups: Member
Joined: 3/24/2008(UTC)
Posts: 3

I solved my problem for the moment, but this seems to be an aurigma bug.

the problem appears when using an action that looks like:

iu.addParam("Action", "someBaseUrl;jsessionId=sessionId?paramName=paramValue&paramName2=paramValue2");

when the jsessionId is included in the postUrl, aurigma is posting the selected files to the baseUrl without including any of the parameters.

This fails the upload.

When the upload fails, aurigma sends the request again (because of the retry setting), but this time to the correct complete url.

I solved my problem for the moment by not sending the jsessionId, which would make it fail on a browser where cookies are not enabled.

Fedor  
#4 Posted : Tuesday, April 15, 2008 12:20:12 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,567

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
It seems the problem is in semicolon:

According Action property documentation you can have several URL separated with semicolons:

Quote:
A string that specifies the URL to the page files are posted to. You can specify several URLs in this property. They should be separated by a semicolon character (;). Note that if you need this character in your URL string (like in this one: http://upload.server.com...essionid=123?param=value), you need to URL-encode it, that is replace the semicolon character with the %3B sequence.

So way try to upload to:

Code:
u.addParam("Action", "someBaseUrl%3BjsessionId=sessionId?paramName=paramValue&paramName2=paramValue2");

It should help.

Edited by user Tuesday, April 15, 2008 12:20:56 AM(UTC)  | Reason: Not specified

Best regards,

Fedor Skvortsov

wbakkar  
#5 Posted : Tuesday, April 15, 2008 4:19:34 PM(UTC)
wbakkar

Rank: Newbie

Groups: Member
Joined: 3/24/2008(UTC)
Posts: 3

sorry, this was clearly noted in the documentation of the Action property but i didn't notice it.

Thank you for your help.

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.