## Introduction

Once uploaded from Google Drive, the corresponding Overleaf project file(s) can be refreshed at any time to resync them with the latest version stored in Google Drive—the video below demonstrates how to do that.

## Sharing a file in Google Drive

Start by identifying a file stored in Google Drive that you want to upload into your Overleaf project:

Next, you need to share that file, to make it accessible outside of Google Drive. The following screenshot, taken on a desktop PC, shows how to access the file-sharing and file-link options within Google Drive:

After you select the option to share the file, a Share with people and groups dialog box appears (see below). From here you can choose to share that file with particular individuals/groups or make it available to anyone who has the appropriate Google Drive link.

Here, we’ll share the file with anyone who has the Google Drive link by changing the link-sharing setting from Restricted to Anyone with the link, as shown in the following screenshot taken from a desktop device (Windows laptop):

After selecting the preferred link-sharing option, we need to obtain a copy of the Google Drive link (URL) to our shared file. There are several ways to do this:

• choose Copy link from the dialog box above (if still visible on your screen), or
• right-click on the file and choose Get link (see screenshot below) then select Copy link from the pop-up box, or
• select the link option displayed to the right (see screenshot below) then select Copy link from the pop-up box.

After pasting the Google Drive link (URL) into a text editor you should see it has the following structure:

https://drive.google.com/file/d/FILE_ID/view?usp=sharing&resourcekey=RESOURCE_KEY

• FILE_ID
• resourcekey=RESOURCE_KEY

Here is an image highlighting the FILE_ID and RESOURCE_KEY components:

FILE_ID and RESOURCE_KEY are lengthy alpha-numeric character sequences so be careful when you copy them to avoid missing/dropping any characters.

Having extracted the FILE_ID and RESOURCE_KEY, use the following template to construct the download URL for Overleaf:

https://drive.google.com/uc?export=download&id=FILE_ID&resourcekey=RESOURCE_KEY

Here is an image highlighting use of the FILE_ID and RESOURCE_KEY components within the constructed download URL: