ruby - uploading via google api from remote url -


I am trying to upload a file through the Google ruby ​​API client. This works

  Media = Google :: APIClient: upload IO.new ('test.jpg', 'image / jpeg')   

but It does not work

  Media = Google :: APIClient :: Upload IO.new ('http://www.somedomain.com/test.jpg', 'image / jpeg') < / Code>  

How do I upload media from remote servers such as S3?

I did not find a solution to this question. I have finished using the Ruby tempile class which is my The external files on the server will be downloaded to a temporary folder and will remove it after the debris is removed.

How to use this class

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -