Reputation: 5791
Suppose I have an URL http://mydomain.com/abc.mp3 from where I want to copy the audio file and want to upload it on another URL http://another_doamin.com/abc.mp3
Anyone can suggest me to do this in ruby.
Thanks in advance.
Upvotes: 0
Views: 457
Reputation: 7188
There are many options, depending a lot on what are the capabilities of your applications (servers). You might want to be a little more precise in your question. Here are some that spring to my mind when thinking about "reading file from one location and uploading it to another":
wget
...) the file from my domain while generating page on another domain, assuming as in 3. Once again, this is more Rails than pure Ruby. This will obtain a copy of a file from one domain to another whenever requested.Upvotes: 1