[Rails] Re: application/octet-stream from flash: binary data, not swfupload

2009-01-15 Thread sarah
Interesting. This is definitely a step in a productive direction and I am very thankful for the suggestions that you have given. It's not *quite* doing the trick, but it's the closest I've been so far. Here's the scoop: First, to do this, I had to make :content_type and :filename :attr_accessibl

[Rails] Re: application/octet-stream from flash: binary data, not swfupload

2009-01-15 Thread Peter De Berdt
On 15 Jan 2009, at 19:55, sarah wrote: > What is happening for us is that I am able to get the content-type as > "image/jpeg" using mimetype_fu, but that is as far as things go. If I > then try to save that data in the controller (using attachment_fu), > like so: > > image_params = {:uploaded_dat

[Rails] Re: application/octet-stream from flash: binary data, not swfupload

2009-01-15 Thread sarah
Thanks for the reply, Peter. Unfortunately, this is not what is happening in my application. Are you uploading images or passing binary data created in Flash to Rails? What is happening for us is that I am able to get the content-type as "image/jpeg" using mimetype_fu, but that is as far as thin

[Rails] Re: application/octet-stream from flash: binary data, not swfupload

2009-01-15 Thread Peter De Berdt
On 15 Jan 2009, at 03:48, sarah wrote: > I'm working on a rails app with a flash application in it, and the > flash application posts binary data to the rails app, to create and > upload an image. The image arrives from Flash with a Content-Type of > "application/octet-stream", but by the time t