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



Go to last post Go to first unread
#1 Posted : Monday, July 9, 2007 10:58:57 PM(UTC)

Rank: Member

Groups: Member
Joined: 7/9/2007(UTC)
Posts: 1

The URL that I pass to the "Action" param of the Uploader has a URL-encoded parameter whose value is a base64 encoded byte array. This value usually has one or more plus signs (+) in it. When passed through a URL encoder, these plus signs are encoded into %2B and give to the Uploader. Unfortunately, when the Uploader calls my action, this parameter reaches my server with spaces instead of + signs. Looking online I found that if a URL decode is run on a + it turns into a space, which makes some sense as there are some sites in which their URLs or file downloads have +'s in them instead of %20 representing spaces.

So it seems this Image Uploader is decoding the URL once itself then sending it to my server, which decodes it again, turning all +'s into spaces, thus corrupting my intended value. How can I get around this?

(This is using the ActiveX version, using IE6. The server is Struts2 running on Tomcat5.23 in Linux.)
Alex Makhov  
#2 Posted : Tuesday, July 10, 2007 5:04:01 PM(UTC)
Alex Makhov

Rank: Advanced Member

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


Thank you for bug report. We will check and fix it.

As for workaround you could add the encoded value as a hidden form element. Please read the AdditionalFormName property description fore more info.

Edited by user Friday, February 22, 2008 10:55:14 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.