|
|
Rank: Newbie Groups: Member
Joined: 3/24/2008 Posts: 3 Points: 9
|
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.
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 7/28/2003 Posts: 1,140 Points: -396 Location: WA, US
|
Could you post the code you use?
Best regards, Fedor Skvortsov
|
|
Rank: Newbie Groups: Member
Joined: 3/24/2008 Posts: 3 Points: 9
|
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¶mName2=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.
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 7/28/2003 Posts: 1,140 Points: -396 Location: WA, US
|
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/uploadFile;jsessionid=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¶mName2=paramValue2"); It should help.
Best regards, Fedor Skvortsov
|
|
Rank: Newbie Groups: Member
Joined: 3/24/2008 Posts: 3 Points: 9
|
sorry, this was clearly noted in the documentation of the Action property but i didn't notice it. Thank you for your help.
|
|
|
Guest |