Merb Routing has an option called "fixatable".
so:
match("/avatars/upload").to(:controller => "avatars", :action =>
"upload").fixatable
That allows you to embed your session id in the url. This should allow
you to easily get around the session bug with swfupload by embedding
your session in the upload request, and merb will pull it out and use
it to initialize the session object.
Not really documented anywhere that I know of unfortunately. I just
came across a mention of it in "The Merb Way" rough cut and remembered
seeing your question so I thought I'd help out.
On Nov 19, 12:32 pm, Mrknife <[EMAIL PROTECTED]> wrote:
> Trying to get swfupload to run with merb.
>
> When swfupload sends a request to my application it doesn't have a
> session. This is a known problem with swfupload.
> Through some hacks and mostly the tutorial
> fromhttp://blog.airbladesoftware.com/2007/8/8/uploading-files-with-swfupload
> i've got been able to pass my session_id as a query parameter with the
> request.
>
> My problem is i don't know what to do with the session_id that will
> give the request from swfupload its session.
>
> Any help on this is appreciated,
> Thanks,
> Mrknife
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---