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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -