Prestashop Upload Images to Google Drive - google-drive-api

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.

Related

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

Sharing a Google Drive for collaborative working

I was recommended by Google Support to ask here.
How do I get a work around for using my Google Drive as a collaborative work area? i.e. share the entire drive with others? Currently Google only allows a Drive to be associated to a single account whereas that's no use for collaborative working / sharing unless you share multiple folders as once?
Any thoughts
Cheers
BJS
Can't you make a folder and treat it as root (like C:) and subfolder it from there?
Then modify the share settings on your root folder from private to anyone with a link or public.
It might not be the way you intended to use it but as far as I know this works.
Sincerely
Bert

How to save my data in a cloud?

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.

Visual interface Google Drive for app

Maybe this is a silly question, but I've been trying to look information about it on internet without luck.
I have an app that uses Google Drive SDK. I was wondering if there is an option to actually access my files stored for my app like I can access my personal files in Google Drive
I have a small mess with some folders and it will be easier if I can actually manage them with a visual interface.
Thanks!
I'm guessing that your app uses a Service Account? If so, then there is no UI. See this question I can't see the files and folders created via code in my Google Drive
Aha. You cant with a service account. However you could share the files and folders with a "real" account and see them. Easier to do if you already have everything inside a root folder so you only share that folder.

Determine if a certain File is process by a project that uses Google Drive API

Good day! I am currently developing a website using Google Drive API. However, I am wondering if is it possible to know if a certain file is created/uploaded/shared by the project using an App Id. I was thinking if it is belong to the attributes of a file. But, when i checked, it seems that, there's no such thing.
What I am trying to do, is to filter the files' shared by the other user to the owner of the account using my web site. Is it possible? Any suggestions on how to do it?
Thank you in advance.
File metadata doesn't contain this information unfortunatelly, therefore you can't know if some file was created by your app or not. But FYI Google store it somewhere, if you will try to upload somefile without providing its content type (* / *) and after that try to open this file through browser you will see the message:
No preview available
This item was created with YourAppName, a Google Drive app.
Download this file or use one of the apps you have installed to open it.