As to the CSRF part, you'll need to pass the authenticity_token into
Flash somehow (my Flash is pretty terrible, so I wouldn't really know
how to do that; i guess a start would be knowing #
{form_authenticity_token} is the String containing the authtoken).
Otherwise you can call
skip_before_filte
I can mess with it again... but if I use Flash, is there anything out
of the ordinary I need to do (eg with the authentication in Rails
2.x)? I used the same Flash script that worked to send to PHP to Ruby
and I couldn't get Ruby to do anything with the files (using Rails
script that worked with s
sorry, local_path will return the tempfile's path on the server;
original_filename will return... the basename of the original file
(even accomodating for IE's wonkiness)
On May 14, 9:42 pm, pharrington wrote:
> params[:file_upload_field] will just be a slightly enhanced File
> object; call it's
params[:file_upload_field] will just be a slightly enhanced File
object; call it's original_filename method to get the path it was
uploaded to on the server and you can use your everyday FileUtils,
File, and IO methods on it to do as you please.
On May 14, 8:58 pm, "wejrow...@gmail.com" wrote:
>
I actually have my own uploader class for Flash, which uploads
multiple files one after the other. The only thing I need to know is
how to get Rails to retrieve that file. Any simple solutions/tutorials?
--~--~-~--~~~---~--~~
You received this message because you ar
I can't understand if you are telling that for me, but i will reply
anyway... if your reply was for the Flash solution, sorry (just ignore).
It does a normal post, just like any other js that is generated from rails,
> so it's just a matter of reading the params on the other end.
Yes, is just th
It does a normal post, just like any other js that is generated from rails, so
it's just a matter of reading the params on the other end.
On Fri, 15 May 2009 07:43:27 +0800, wejrow...@gmail.com
wrote:
>
> That looks like a start. But what about integrating it with Rails?
> That's my problem,
There is no Rails solution for this, cause upload is normally controlled by
the server.. If you (like me) don't want or can't use Flash based solutions,
you should work using modules on the server and creating client side
solutions using Javascript.
At this moment i'm working in something like tha
That looks like a start. But what about integrating it with Rails?
That's my problem, I can't get Flash to talk to rails. I don't see any
documentation for it on their site.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
we are using swfupload, which works pretty well. It allows you to show progress
of each upload etc. We switched to this because the customer wanted a
multi-select file dialog.
before that, we had rolled our own js solution, which allowed the user to pick
one file at a time, but upload them all
10 matches
Mail list logo