2

There is a Drive app for Slack that seems able to let me share Drive docs on Slack but not, as far as I can tell, the converse. Our customer likes to share files on Slack, which we then download and add to our GDrive for safe-keeping.

Is there any way from Slack I can send the file directly to GDrive

  • If the shared files can be downloaded without loging in to Slack, how about using UrlFetchApp? Of course, even if the files cannot be downloaded without the authorization, you can download the files using the access token retrieved from Slack. – Tanaike Jul 31 '18 at 0:09
0

I am not aware of any existing Slack apps that automatically sends all files uploaded on Slack to a Google Drive. But you could easily create your own Slack app for that.

The basic functional outline would be:

  1. Listen to message events of a channel with Slack's Events API
  2. Detect a file upload
  3. Download the file to your local server storage
  4. Upload the file to your Google Drive account via Google's API
  5. Delete the file from your server storage
  6. Optionally: Send a notification to someone about the upload of another file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.