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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -