Help with rjb

raf wrote:

I am trying to do file i/o with rails and rjb and can't figure out a way to make this work. Here's what I am trying to do: - a user uploads an image to the server via a standard html form:          <%= file_field("blog", "attach") %> - this returns a ruby File object to the controller in params[:blog][:attach]

Are you POSTing the "standard form"? Or by RJS do you mean you are trying to use Ajax?

Standard Ajax cannot send a file. Try this system:

Thanks for your response. My original post was incomplete and sent in error. Please see the subsequent post for a more full (hopefully better) explanation of what I am trying to do.

PS - Ajax is not involved at all. This is a question about rjb (Ruby/ Java bridge)