ruian / RuianUploadifyBundle

Add Uploadify support for symfony2
21 stars 8 forks source link

Wiped Session or Crash #5

Open Critical-Impact opened 12 years ago

Critical-Impact commented 12 years ago

Hi I've been able to get your uploader to work albiet by modifying your code, which seems weird because I believe it should work.

When I use your sample code normally, my session gets wiped(I'm using Craue's form flow bundle so each step is stored in the session).

I attempted to pass the session directly from the controller into the _sessionid of the uploadify script, this uploaded the file but in the returned JSON there was a fatal php error "Exception thrown without a stack frame".

The only way I've been able to get it to both submit and not clear my previous session is by removing this segment of code $request->cookies->set(session_name(), 1); session_id($this->decrypt($request->request->get('_sessionid'))); from RequestListener.php

I'm using the 2.0x branch of symfony if it helps.

ruian commented 12 years ago

if you remove these lines, you disable the ability of uploadify to upload in secured area like Admin zone.