Google drive as documents storage for my application

16 views
Skip to first unread message

Sérgio Santos

unread,
Mar 6, 2015, 3:45:28 PM3/6/15
to google-drive...@googlegroups.com
Hello,


I'm been searching in a few places including the documentation of google drive API but i don't really know if this is possible...

I'm building a PHP software and the goal is to store some products and for each product they have some attachments with related information. This application have multiple users who need's to login in the application.

What i pretend is instead saving the documents (word, excel, pdf, ...) in the server (or service) i want to store it on a google drive account... This account is not the user's account but one specific for this software and the client should not notice the difference between uploading to the server or to google's account.

The purpose of this is for later instead downloading the file, i redirect to the link of the document in google drive website (public or some temporary access)... this way they can edit the file in simultaneous, and there is no need to uploading the changes since we are editing the file directly...

If its possible can you please show me the steps needed to make this?

Thanks

Chris Holcomb

unread,
Jan 26, 2016, 1:00:57 PM1/26/16
to Google Drive API and SDK
It sound like you are wanting to store the files on "Your" Google Drive account and have your database only store the FileID's and links to the file for viewing and downloading. Then you want them to be able to make changes to the file after they download it and upload the updated document. Does this sound about right?

If so the only thing you will have to figure out is if you are replacing an existing document you will need to do an update and know the ID of that document.

I see this post is pretty old, let me know if you still need help.

Sérgio Santos

unread,
Mar 16, 2016, 7:30:32 AM3/16/16
to Google Drive API and SDK
Hi Chris Holcomb,

By lack of time i didn't touch this anymore but the idea to make this it's still in my mind. And i really appreciate the feedback.

So you said almost everything correct. The files are stored in my account and indeed the idea it's to save the FilesId's and links on database. But its even more simple than that, i don't need to download the file, i don't need to reupload the file, if the user goes directly to the google drive page and change the document there for me it's more than enough.

In short, what i want in my application is: 
  1. The user click upload file, it opens a form where they can drag the file. 
  2. The files goes to my drive account.
  3. The file is listed in a sidebar of the software
  4. The user click on the file listed aside and it's redirected to the googles drive page where they can edit
My idea to implement this is the software i've been building uses lot of word as attachments... everytime they want to edit they have to download it, change it, and reupload the file, removing the old version. If i could change this will be a huge benefit...
Reply all
Reply to author
Forward
0 new messages