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
Post a Comment