How to save my data in a cloud? - google-drive-api

I don't know if this is possible, but I would like to save some data of my website, like images and documents in a cloud like dropbox or google drive and I want that these data are available and visible to someone looking my site.
is it possible? (My intention is to continue storing the html,js etc data on the server)

You can do that with Dropbox or Google Drive.
For Dropbox, put your all images to a folder and make this folder public. Then, right click the image or js file and select the copy public link. You can use this link for your images or js files.

Related

how to read images form a cloud shared services like google drive or other

hi i am working on project in which requirement is i have to upload images on some cloud services like google drive or other, and it generates a URL of images like http://example.com/images/1.jpg etc and share this URL with any one.
I already tried this method (but it not fulfill my requirement) :
How do I display images from Google Drive on a website?
If you have some image files, just upload them to a public folder on
your Google Drive, copy its folder ID from the address bar (e.g.
0B0Gi4v5omoZUVXhCT2kta1l0ZG8) and paste it into a form at GDrives,
then choose your own alias (e.g. myimgs) and voila! You can access the
images one by one using e.g.
http://gdriv.es/myimgs/myimage.jpg
If you want to embed a whole folder on your website (in a frame), you can use one of the following URLs, replacing [folderID] with your
own ID:
http://gdriv.es/myimgs/
https://docs.google.com/folder/d/[folderID]/preview?rm=minimal
https://drive.google.com/folderview?id=[folderID]
If you prefer to get the file list in XML or JSON, you can use YQL.
Note: You can use Google+ Photos to host ans embed your images as well.

Prestashop Upload Images to Google Drive

I have a requirement from my client to make the prestashop (products images, categories images etc) directly upload to Google Drive. Before to start the implementation I have been looking for some tutorials but I didn't found anything. That made me think it's not so easy to implement this feature.
Do you know if is this possible without changing half of Prestashop's core?
You can copy img folder to google drive public folder and use PrestaShop media server. but google drive is not suitable choice for this usage.

I am trying to build a website that has a file manager on it. Is there any way to pull file paths and files from Google Drive?

I would also like to pull from Dropbox, Box, and iCloud Drive. If there is no way, I will try to work around it but I was just wondering. I would like to be able to see the whole drive (all files and folders accessible). Thanks.
Depending on what you exactly are looking to do, you can use Google Drive's API to create/open files on your Drive for a serious project. If you are just experimenting with an idea, you can host your site directly from Google Drive.
To display all the files including folders, use Files.list. If you want to specify which type of file you want to show, check Search Files.
To know more about working with folders and filepaths check Work with Folders

preview html files in google drive without making them public

I have a bunch of html files in my drive and I want to be able to preview them without downloading them to local. I also don't want to create a public folder and store them there. Basically I want the files to be only visible to me and to people whom I share with. Is it possible?
I don't have to necessarily view the pages in the drive.google.com, it's ok to be a url which has to be accessed outside of drive.google.com, and I can bookmark that url to visit the html files and send the link to authorized people.
I came across this solution in SO but it suggests to create a public folder.
opening html from google drive

Generate a URL for Google Drive publicly shared files and access them

I have a collection of PDF files on a Google Drive. I have shared them and I want to be able to link to them from a list on a web site. What I'd like to be able to do is work out the file name of the PDF using information in the list. As a simple example, if my list contains items 1, 2 and 3 I'd like to be able to upload PDF files 1.PDF 2.PDF and 3.PDF to Google Drive then have the web site just link to those when a link is clicked and show the PDF files in the browser.
So, I guess I could do this just by uploading the PDF to Google Drive and manually adding a link to PDF on the web site. However, what I want to do is generate the link programmatically so that when I have, say, 50 PDF files I don't have to keep getting the link from Google Drive and adding it to the web site. The site should just work out that item 50, say, in the list will link to 50.PDF, for example.
I've tried to get the file id using the API but that requires the authorization token to be generated and manual intervention to take place, so that won't work. At least, not at the point where the file is viewed because the viewer is anonymous.
So my questions are:
Is it possible to work out what a file name will be on the drive using just something like an item number in a list?
I guess that there are maybe some other options - for example, when I add the items to the list on the web site programmatically, I could go and locate the google drive file manually using a web application and link it using the file id at that point. I could store the ID in a database - however, would any anonymous user then be able to just click on the file link on the web site and view the file?
Finally, can anyone think of another way to do this?
Any help would be appreciated! :)
Is it possible for you to use a service account? You can authorize the app with an account dedicated to your app and user doesn't need to authorize and authenticate. The files you will be uploading will be managed under the service account's Drive.
You can learn more about service accounts on https://developers.google.com/accounts/docs/OAuth2ServiceAccount
If you have implementation specific questions, please ask.