I already have an upload function in Google API and Dropbox API, but the problem is it can only upload small files like images but it cant upload big files like videos. Please help what do I need to add in the code.
This is my code in Google
This is my code in Dropbox
Please help..
Related
So when I submit a .docx file through google classroom it gets converted into a file with mimetype application/vnd.openxmlformats-officedocument.wordprocessingml.document and stored in the Classroom folder of the teacher's google drive.
I want to read the contents of this file so I can do analysis on them, but cannot find a suitable way to do this.
Initially, I tried using the google docs api
GET https://docs.googleapis.com/v1/documents/{documentId}
This threw an error that the mimetype was incorrect.
The google drive api for files/get allows me to get a download url for the document, but unfortunately this requires in browser authentication so I cannot make this work programmatically.
How shall I proceed to read the contents of this file?
I believe some possible solutions are converting the application/vnd.openxmlformats-officedocument.wordprocessingml.document mimetype into the standard google docs mimetype, or having a download url that doesnt require authentication, but I do not know how to do either of these!
Thanks in advance!
is it possible to post an image upload request to Google Photos REST API, and point it to an image on Google Drive, or use any image URL for that matter (instead of actually opening image on your local drive and posting data)?
Thanks for your replies.
I have already uploaded videos available in google drive. How to import these videos into same youtube account to watch those videos in android MI tv ?
Thanks
Google drive and YouTube are to separate web applications.
You will need to download the files from google drive and the upload them to YouTube its not possible to upload directly from drive.
How you do this will depend entirely on which programming language you are using.
But basically use Oauth2 to login a user to google drive and YouTube. Programmatic download the file to where ever you are running your application from then upload it to Youtube.
you could select video in google drive and select upload to you tube Chanel like below:
and use this website:
https://imclient.herokuapp.com
I am currently trying to generate a url to link to a public Google Photos gallery. I am aware from some research that all calls regarding Google Photos go through the Picasa API. So, by running file_get_contents on the following URL, I have retrieved a full listing of all public albums on my user account
http://picasaweb.google.com/data/feed/api/user/<USERNAME>?alt=json&kind=album&hl=en_US
This works perfectly and includes links to the gallery in Picasa. However, I would much prefer to be able to generate a link to the corresponding Google Photos gallery. On sharing Google photos, a shortened url is generated, like
https://goo.gl/photos/code
I was wondering if there was any possible way, given the album ID from the API call that such a link could be generated
Previous questions on this subject haven't generated much response unfortunately - is anyone aware of any such Google link generation capability?
I'm building a web site using Ruby Volt for a publication. I'd like users to be able to upload images that will be stored on Google Drive. The Google Drive will belong to the publication, not to the site users who are uploading the images. If possible, I'd like the fact the images are being stored on Google Drive to be transparent to the site users.
The publication staff will access the images via their Google Drive.
My head is swimming with the Google documentation… Does anybody know if this is doable? If it is can you offer any pointers to example code or suggestions on how to get started?
So I can't help with the google drive API side of things, but in Volt, you can use a HttpController to post a input type="field". In the http controller, you can call params._field_name to get the data from rest. That will provide a tempfile you can copy out. Once I get time I'll make a demo app for file upload.