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

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

gtk - Python Window Resize -

c# - read full xml file data over tcp -