# How to upload a model in ComfyUI

Uploading into ComfyUI through our file browser is exactly the same as you would through A1111 - see [those instructions above](https://learn.thinkdiffusion.com/thinkdiffusion-faqs/#how-to-upload-a-model-by-url-eg-civitai). Basically:

* In **My Files**, navigate to the correct folder.
* And click upload to reveal the URL field for your URL.

The important step is navigating to the correct folder depending on the type of model you're uploading.

Navigate to: **/ comfyui / models /**

<figure><img src="https://learn.thinkdiffusion.com/content/images/2024/01/Comfy-tutorial-file-browser.jpg" alt="" height="1200" width="1200"><figcaption></figcaption></figure>

You'll see that Checkpoints, ControlNet Models, LoRAs, LyCORIS', VAEs, and Hypernetworks all have their corresponding and designated subfolder within the models folder.

Choose the subfolder that matches the file type you're uploading. In the example below, we will:

* **(1)** Navigate to the **/checkpoints/** subfolder to upload a checkpoint file.
* **(2)** Paste the URL of your file into the upload field.

You'll see your newly uploaded model show up below in the file area.

<figure><img src="https://learn.thinkdiffusion.com/content/images/2024/01/Comfy-tutorial-file-browser-paste.jpg" alt="" height="1200" width="1200"><figcaption></figcaption></figure>

**Learn how to find the URL of the file you're uploading**

Click on RESTART UI so ComfyUI refreshes its model listing.\
Sometimes Comfy requires you to refresh the browser.

<br>

## &#x20;<a href="#how-to-upload-a-file-from-your-device" id="how-to-upload-a-file-from-your-device"></a>

## &#x20;<a href="#how-to-upload-a-file-from-your-device" id="how-to-upload-a-file-from-your-device"></a>

## How to upload a file from your device <a href="#how-to-upload-a-file-from-your-device" id="how-to-upload-a-file-from-your-device"></a>

{% embed url="<https://learn.thinkdiffusion.com/content/media/2023/08/UploadFile.mp4>" %}

To upload a file or image, open your **My Files** panel

Then simply **click the ⬆️ Upload button** to reveal the drag & drop/upload area, and tap the area to upload the file of your choice.

You can also upload with a single URL via [Sites like Civitai](https://learn.thinkdiffusion.com/thinkdiffusion-faqs/#how-to-upload-a-model-by-url-eg-civitai) or from file sharing services like [Google Drive](https://learn.thinkdiffusion.com/thinkdiffusion-faqs/#how-to-upload-from-google-drive).

***

## How to upload a model by URL ( eg Civitai ) <a href="#how-to-upload-a-model-by-url-eg-civitai" id="how-to-upload-a-model-by-url-eg-civitai"></a>

1. **On Thinkdiffusion, navigate to the appropriate folder, first.** Your uploads will be placed in that file path.

* For example, to upload a custom checkpoint model by URL, open your **My Files** panel, and navigate to the following folder:\
  \&#xNAN;*../user\_data/a1111/models/Stable-Diffusion/*

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/image-2.png" alt="" height="85" width="580"><figcaption></figcaption></figure>

* If you're uploading a custom LoRA, the path would would be: *../user\_data/a1111/models/Lora*

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/image.png" alt="" height="84" width="483"><figcaption></figcaption></figure>

**2. Click the ⬆️ Upload button** to reveal the upload field

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/image.jpeg" alt="" height="88" width="328"><figcaption></figcaption></figure>

**3. Paste in the URL** of your choosing. The URL can be from Civitai, huggingface, or any other URL hosting the files.

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/image-1.jpeg" alt="" height="120" width="1016"><figcaption></figcaption></figure>

**Find the correct link to right-click on Civitai:**

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/civitai-copy-rounded.png" alt="upload in progress, 0" height="300" width="850"><figcaption><p>Find the correct link to right-click on Civitai. You can also use the big download button on the top of the model's page, but when there are multiple files offered, you'll be able to choose individual files from this area.</p></figcaption></figure>

**Find the correct link to right-click on Huggingface:**

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/image-4.png" alt="" height="179" width="850"><figcaption><p>Find the correct link to right-click on Huggingface with the download icon, NOT the model's name. </p></figcaption></figure>

**4.** Hit the 🔄 **Refresh** button next to the appropriate models list (if applicable) and Voila! 🪄✨

***

## How to upload from Google Drive <a href="#how-to-upload-from-google-drive" id="how-to-upload-from-google-drive"></a>

Uploading files with a direct google drive link is as easy as pasting the URL of the file into the URL field.

\
It’s ***GETTING*** the link from Google that’s the tricky part, due to their security checks. In the future, we’ll be implementing a solution for this, and in the meantime you can take the steps below:

**⚡️Protip**: First confirm your file is publicly available with the link, so that "Anyone with the link" can access the file.

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/2023-09-22_9-11-37.png" alt="" height="262" width="541"><figcaption></figcaption></figure>

**1. "Copy link" from Google drive**

* It would look something like this: *<https://drive.google.com/file/d/1p66tMx0YhzXfzIxlupa8Oaqp-BJZA0Rf/view?usp=drive\\_link>*

**2. Convert the Google Drive public URL to a fully downloadable link**

* You can use the format:\
  \&#xNAN;*<https://drive.google.com/uc?export=download&id=YOUR_FILE_ID>*

**3. Replace “YOUR\_FILE\_ID” with the actual file ID** from your Google Drive URL.

* In this example, the file ID is *1p66tMx0YhzXfzIxlupa8Oaqp-BJZA0Rf*\
  so the fully downloadable link would be:\
  \&#xNAN;*<https://drive.google.com/uc?export=download&id=1p66tMx0YhzXfzIxlupa8Oaqp-BJZA0Rf>*

***

**Important**: If your file is too large, Google drive will present you with this confirmation:

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/08/image.jpeg" alt="" height="191" width="686"><figcaption></figcaption></figure>

You then need to follow these steps below to get the correct URL:

**1. Go to Inspect mode** with a right click & Inspect (or F12 button on Windows).

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/inspect.png" alt="" height="422" width="435"><figcaption></figcaption></figure>

**2. Select the Network tab**

**3**. **Click on the** "**Download anyway"** **button**, then click Cancel when the download window pops up.

**4. Click on the "uc?id=......"** in the Name column on the left.

**5. Click on the "Headers" Sub tab**

**6. Copy the Request URL**\
( which you can find in the: *Network Tab > Headers Sub tab > Request URL )*

The Request URL is the fully downloadable URL to your file. Now you can *FINALLY* paste *THAT* into the Think Diffusion Upload via URL field!

<figure><img src="https://learn.thinkdiffusion.com/content/images/2023/09/google-drive2.jpg" alt="" height="1200" width="1400"><figcaption></figcaption></figure>
