hi I have seen httparty but I don't have a idea to how to implement there are many example of model file but which paramater can be use for upload the video file
HTTMultiParty supports file uploads by posting a multipart MIME document. It wraps HTTParty so you use it in the same way. For the file, just supply a File object. Example from the README:
require 'httmultiparty'
class SomeClient
include HTTMultiParty
base_uri 'http://localhost:3000'
end
response = SomeClient.post('/', :query => {
:foo => 'bar',
:somefile => File.new('README.md')
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With