Instantiating File from a remote url in a rails controller -


क्या ऐसा कुछ करने का एक तरीका है:

File.new ('http : //hostname/myfile.zip ')

एक नियंत्रक के अंदर?

  की आवश्यकता होती है 'ओपन-यूरी' फ़ाइल = ओपन (यूआरआई.परसे ('http://www.google.com/intl/en_ALL/images/logo2.gif')) file.size = & gt; ; 8558  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -