AnkiCollab is a collaborative tool for sharing Anki decks. It allows you to share your decks with your subscribers and create a collaborative community of users who can contribute and learn together. However, one of the limitations of AnkiCollab is that it doesn't support media files directly, and this can be a problem if your decks rely heavily on images or audio. Fortunately, you can use Google Drive to store and share your media files with your subscribers. In this guide, we'll walk you through the steps to set up Google Drive with AnkiCollab.
If you follow this guide, it will take you roughly 5-10 minutes to set up full media support for your deck and you won't have to spend another second thinking about it afterwards.
If you don't have a Google account, you'll need to create one. You can use your existing Google account, but we recommend creating a new one so that your subscribers will have limited access to it.
- Go to the Google Cloud Console.
- Click on "Select a project".
- Create a new project.
- Enter a name for the project and click "Create".
- Select the project.
- Open the Google Drive API page in your Google Cloud Console.
- Enable the API by clicking the "Enable" button.
- A new page will open. Click on "Credentials".
- Click on "Create Credentials".
- Select "Service account" and enter a name for the account.
- Click "Done" to create the account.
- Store the email address displayed on the screen somewhere safe.
- Click on "Keys".
- Create a new key by clicking on the "Add Key" button and selecting "JSON".
- Click "Create" to download the JSON file.
Congratulations! You have now completed the hard part of setting up Google Drive with AnkiCollab.
Go to Google Drive and create a new folder by right-clicking somewhere and selecting "New Folder"
Create a new folder and open it.
Note that every folder in Google Drive has a unique name worldwide, and we need that unique name to identify the folder that AnkiCollab should put the media in. To obtain this unique identifier, copy the part of the URL after "folders/". In my case, it is 17RJYNO1JlX8veXUedPVlOgTt9jqeV0v-
.
Step 11: As a final step, invite the service account we created earlier to your folder so that it has access. Click "Manage Access" in the folder's context menu.
Enter the email address you stored earlier. If you forgot to save it, you can find it again on the "Credentials" page in the Google Cloud Console.
Disable notifications and send the invite.
The folder should now have two people with access: you and your service account.
Bonus Step: If you want to enable everyone on the AnkiCollab website to view the media files, you can allow "General access" to "Anyone with the link" by clicking "Manage access" again.
This will enable everyone on the website to view the media files (but not edit them, of course).
Congratulations! You are now 99% done. The final step is to set up your Google media in AnkiCollab.
Step 12: Navigate to https://www.ankicollab.com/ManageDecks/ and select your deck.
Click "Set up" next to "Google Media".
Drag and drop or select the file that was downloaded earlier.
The upload should be confirmed with blue text.
Enter the folder ID that you extracted earlier.
Finally, hit "Save" and you're done!
You're now done with the hard part! Well done! All you need to do now is sync in your Desktop Anki Application by clicking "Check for new content" in the AnkiCollab Toolbar. This retrieves the latest changes you made on the website and you will be able to upload or download media files. The same applies to your subscribers. They need to sync to get the updated media information.
Next time somebody creates a new card with a media file, it will automatically be uploaded to the Google Drive folder.
If you don't start from scratch with your deck, you can also upload all media files from your deck to the google drive folder with just one button. To do that, open the Deck Overview in Anki, click on the gearwheel next to your deck and click "Upload new Media". This will upload all media files to Google Drive (and skip existing files).
Your existing subscribers can also quickly download all media files with just one button.
Congratulations again, and enjoy using AnkiCollab with your Google Drive storage solution!