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

Notification

Icon
Error

Options
Go to last post Go to first unread
ndonnan  
#1 Posted : Friday, June 19, 2009 2:01:10 AM(UTC)
ndonnan

Rank: Newbie

Groups: Member
Joined: 6/19/2009(UTC)
Posts: 3

Hi There,

Sometimes out server code is returning a 201 response code which is successful, however the image uploader applet is displaying an error message stating that a problem occurred.

Here is the applet log:

Starting upload
Status =[201]
UploadException occured
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[4]
[ErrorPage]

[EndOfErrorPage]

Is there a way to configure the uploader to treat 201 as a successful status?

Thanks,
Neal.
Dmitry  
#2 Posted : Sunday, June 21, 2009 12:53: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)
Hello Neal,

Image Uploader treats code 200 only as successive. This way to resolve your issue you need to return 200 as HTTP status code in the request.

Edited by user Monday, June 22, 2009 12:50:04 AM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
ndonnan  
#3 Posted : Sunday, June 21, 2009 5:42:18 PM(UTC)
ndonnan

Rank: Newbie

Groups: Member
Joined: 6/19/2009(UTC)
Posts: 3

Hi Dmitry,

Thanks for getting back to me on this.

I guess I can make the change to the server code, although strictly speaking anything with a 2XX response code should be treated as successful.

From the HTTP spec:

Quote:
10.2 Successful 2xx

This class of status code indicates that the client's request was successfully received, understood, and accepted.


Maybe a change for a future version?

Regards,
Neal.
Dmitry  
#4 Posted : Monday, June 22, 2009 6:09:54 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 Neal,

I have already added this idea to our issue tracking system. We will try to step into it in the future. Thanks for your suggestion.
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.