XMLHttprequest post method in rails -


How to send files through xmlhttprequest.send (file) in Rail, the related method (method) in the post method controller Calling

Any ideas?

Method in the method specified in the method and get the request (body) content in the controller to get the same action calling method? Class = "post-text" itemprop = "text">

You should be able to get it from your request object. There may be something like this:

path = "public" / file.open (path, "wb") {| F | F.write (request.body.read)}


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -