ridethepony/django-fiber — Issue #65: File upload fails with 401 response and log out user
Author: h3
Created: 2012-02-18 19:48:12+00:00
State: open

If I try to upload an image from the frontend dialog, piston returns a 401 HTTP response (I've only tested with the latest code from git hub).

From the request I see in console, it seems this is probably caused by a missing sessionid parameter:

"POST /api/v1/images/?sessionid=null&qqfile=test.jpg HTTP/1.1" 401 0

After this request the user is automatically logged out..

Obviously it works fine if the image is uploaded using the classical admin.

I get the same result in Firefox and Chrome, it seems the cookie is never set. After login with the admin, I return to the front site and type this in firebug after a page refresh:

> jQuery.cookie('sessionid')
> null