Forum: Ruby on Rails request.raw_post into Tempfile

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b507a552850441a516948d488962d2e?d=identicon&s=25 Sniper Abandon (mokkai)
on 2009-05-27 16:22
i have flash application ,which will give a jpg file as raw_post

from that raw_post i am trying to store into a tempfile

tempfile=Tempfile.new("myfile.jpg")
tempfile.write(request.raw_post)

but always "tempfile.read" giving ""(not storing the data) as output

i don't why ?

any help ?
This topic is locked and can not be replied to.