> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ko/knowledge-base/051-how-can-i-upload-files-from-google-drive.md).

# Google Drive에서 파일을 어떻게 업로드하나요?

## 소개

Google Drive 계정에 있는 이미지 파일이나 다른 파일 리소스는 다음 기능을 사용하여 Overleaf 프로젝트에 업로드할 수 있습니다 [외부 URL에서](/latex/ko/knowledge-base/081-how-to-upload-a-file-using-an-external-url.md)—단, 해당 Google Drive 파일에서 파일 공유가 활성화되어 있어야 합니다. 또한 적절한 URL을 만들어야 합니다([직접 다운로드 링크](/latex/ko/knowledge-base/081-how-to-upload-a-file-using-an-external-url.md#direct-download-links-28urls29))으로, 각 Google Drive 파일을 Overleaf 프로젝트에 추가하는 데 사용할 수 있습니다. 이 문서에서는 그 방법을 설명합니다.

Google Drive에서 업로드한 후에는 해당 Overleaf 프로젝트 파일을 언제든지 새로 고쳐 Google Drive에 저장된 최신 버전과 다시 동기화할 수 있습니다—[아래 동영상](#video-showing-google-drive-file-upload) 이 방법을 보여줍니다.

## Google 기반 서비스의 변경 사항에 대한 참고 사항 및 주의 사항

Google Drive와 같은 파일 호스팅 서비스는 언제든지 서비스, 특히 링크 공유 URL의 구조를 변경할 수 있습니다. 예를 들어, 2021년에 Google은 [Google Drive 보안 업데이트](https://support.google.com/a/answer/10685032?hl=en) 를 발표했으며, 여기에는 `**resourcekey**` 매개변수가 파일 공유 URL에 추가되었습니다. 그러나 이 업데이트의 특성상 모든 사용자(또는 모든 파일)가 이 변경의 영향을 즉시 받지는 않는 것으로 보입니다. 일부 Google Drive 사용자는 `**resourcekey**` 매개변수를 보게 되고, 다른 사용자는 그렇지 않을 수도 있습니다.

이러한 예측할 수 없는 변경 때문에 Overleaf가 Google Drive 또는 유사한 서비스에 대해 일관되게 최신 상태이며 완전히 문서화된 URL 변환 절차를 제공하는 것은 비현실적입니다. 그런 안내는 금방 오래되어 오히려 잘못된 정보를 줄 수 있습니다. 그러나 이 페이지에서는 다음을 포함한 Google Drive 파일 공유 URL을 `**resourcekey**` Overleaf에서 사용할 수 있는 직접 다운로드 URL로 변환하는 한 가지 방법을 제공합니다. 저희 팀은 이 절차를 테스트했으며 저희에게는 작동했지만, 이것이 모든 사람에게 관련 있거나 모두에게 작동한다고 보장할 수는 없습니다. 어려움이 있을 경우, 독자는 우선 자신이 사용하는 호스팅 서비스가 제공하는 가장 최신 문서를 찾아 참고하거나, 최신 기사나 YouTube 동영상을 찾아보아야 합니다.

## Google Drive에서 파일 공유

Overleaf 프로젝트에 업로드하려는 Google Drive에 저장된 파일을 먼저 식별하세요:

![Google Drive 파일을 Overleaf에 업로드하기](/files/0c32e9dbaba1abf189b44d9b956dc89e4b26c9f4)

다음으로, 해당 파일을 *공유해야* Google Drive 밖에서도 접근할 수 있게 됩니다. 데스크톱 PC에서 캡처한 다음 스크린샷은 Google Drive에서 파일 공유 및 파일 링크 옵션에 접근하는 방법을 보여줍니다:

![Google Drive 파일을 Overleaf에 업로드하기](/files/63f79c6f82ea5bcced969cac1dfe26ec68c8e2db)

파일 공유 옵션을 선택하면 **사람 및 그룹과 공유** 대화 상자가 나타납니다(아래 참조). 여기서 특정 개인/그룹과 파일을 공유하거나 적절한 Google Drive 링크가 있는 누구나 접근할 수 있도록 설정할 수 있습니다.

여기서는 링크 공유 설정을 **제한됨** 에서 **링크가 있는 모든 사용자**로 변경하여 Google Drive 링크가 있는 누구나 파일을 공유할 수 있도록 하겠습니다. 이는 데스크톱 기기(Windows 노트북)에서 캡처한 다음 스크린샷에 나와 있습니다:

![Google Drive 파일을 Overleaf에 업로드하기](/files/e71301d149210599bcddcb9031d228c8dcf165a0)

## 공유한 파일의 Google Drive 링크를 가져오기

원하는 링크 공유 옵션을 선택한 후에는 공유 파일에 대한 Google Drive 링크(URL) 사본을 얻어야 합니다. 이를 수행하는 방법은 여러 가지가 있습니다:

* 선택하세요 **링크 복사** 위 대화 상자에서(아직 화면에 보이는 경우), 또는
* 파일을 마우스 오른쪽 버튼으로 클릭하고 **링크 가져오기** 를 선택한 다음(아래 스크린샷 참조) **링크 복사** 를 팝업 상자에서 선택하거나, 또는
* 오른쪽에 표시된 링크 옵션을 선택한 다음(아래 스크린샷 참조) **링크 복사** 를 팝업 상자에서 선택합니다.

![Google Drive 파일을 Overleaf에 업로드하기](/files/7c9c4a02bbcf12b22a9f6c0ba9a4c3efd20db7c5)

## Overleaf용 직접 다운로드 URL 만들기

Google Drive 링크(URL)를 복사한 후에는 원하는 텍스트 편집기에 붙여넣으세요. 우리는 이를 이용해 다음을 도출할 것이기 때문입니다 *직접 다운로드 URL* Overleaf에서 사용하기 위한 것입니다. Overleaf가 Google Drive 파일을 다운로드하여 프로젝트에 추가하는 데 사용할 수 있는 URL입니다.

Google Drive 링크(URL)를 텍스트 편집기에 붙여넣은 후에는 다음과 같은 구조임을 볼 수 있습니다:

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

다운로드 URL을 구성하려면 Google Drive 링크의 다음 구성 요소가 필요합니다:

* `FILE_ID`
* `resourcekey=RESOURCE_KEY`

다음은 `FILE_ID` 및 `RESOURCE_KEY` 구성 요소를 강조한 이미지입니다:

![Google Drive 링크 URL의 구조](/files/c006d12a8f1eeda93e74fa1e8dcd753774dd6a86)

`FILE_ID` 및 `RESOURCE_KEY` 는 길고 영숫자로 이루어진 문자열이므로 복사할 때 문자 하나도 빠뜨리지 않도록 주의하세요.

추출한 후 `FILE_ID` 및 `RESOURCE_KEY`, 다음 템플릿을 사용하여 Overleaf용 다운로드 URL을 구성하세요:

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

다음은 `FILE_ID` 및 `RESOURCE_KEY` 구성된 다운로드 URL 내에서

![Google Drive 다운로드 URL의 구조](/files/f89ab59142638446d5db43bf9d53e276b87f076a)

이제 Google Drive 파일을 Overleaf 프로젝트에 업로드할 준비가 되었습니다.

## Google Drive 파일을 Overleaf 프로젝트에 업로드하기

다운로드 URL을 사용하려면 Overleaf의 파일 업로드 기능을 선택하고 **외부 URL에서**:

![Google Drive 파일을 Overleaf에 업로드하기](/files/cf4ab00e6c99bc56ac1c40e4368347db2bef099e)

를 붙여넣고 파일 이름을 지정한 다음 **만들기** 를 선택하여 Google Drive 파일을 Overleaf 프로젝트에 추가(업로드)합니다.

### Google Drive 파일 업로드 동영상

다음 동영상은 다운로드 URL을 사용하여 Google Drive 파일을 Overleaf 프로젝트에 추가하는 방법을 보여줍니다.

{% embed url="<https://videos.ctfassets.net/nrgyaltdicpt/2PMXTshGJI0Kg2ZtN6iXtk/18d4a3168847009a39f905c9acc45e51/Google_drive_upload.mp4>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ko/knowledge-base/051-how-can-i-upload-files-from-google-drive.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
