# Upload Files with File Manager and FTP

https://voligen.com/en/knowledgebase/article/upload-files-file-manager-ftp

There are two ways to put your website files on your hosting: cPanel File Manager in the browser for a few files, and an FTP client for many files or regular work. Either way, the target is the same: the `public_html` folder.

![Browser or FTP: both routes end in the same folder.](https://voligen.com/templates/website/Voligen/assets/images/kb/dosya-yoneticisi-ftp-dosya-yukleme.svg)

## Before you start

- You need to be able to log in to cPanel (see our cPanel login guide).
- Collect the files in one folder on your computer. Zipping many files into one `.zip` speeds up the upload.
- For FTP, install a client such as FileZilla, WinSCP or Cyberduck.

## What is public_html?

`public_html` is the web root of your main domain. A visitor to `https://example.com` sees the `index.php` or `index.html` in this folder. Addon domains and subdomains use the folder assigned to them in cPanel. Files placed elsewhere in your home directory (`/home/username`) are not published.

## Method 1: cPanel File Manager

1. In cPanel, click **File Manager** in the **Files** section.
2. Open the `public_html` folder from the tree on the left or the file list.
3. Click **Upload** in the toolbar, then drag and drop your files or use **Select File**. When the progress bar completes, use **Go Back** to return to the folder.
4. If you uploaded a `.zip` archive, right-click it and choose **Extract**. If the files land in a subfolder, use **Move** to put them directly into `public_html`.

![1: File Manager icon, 2: the public_html folder, 3: Upload and the drop area.](https://voligen.com/templates/website/Voligen/assets/images/kb/dosya-yoneticisi-ftp-dosya-yukleme-adim.svg)

> ****Tip****
> 
> Uploading one zip and extracting it on the server is much faster than uploading hundreds of small files, and less likely to stop halfway.

## Method 2: An FTP / SFTP client

### Connection details

| Field | Value |
| --- | --- |
| Host | `example.com` or the server name in your service details |
| Username | Your cPanel username, or an FTP account you created (`ftp@example.com`) |
| Password | The password of that account |
| Port | 21 for FTP / FTPS; 22 for SFTP (only if SSH access is enabled) |

### Connecting with FileZilla

1. In FileZilla, open **File > Site Manager** and add a new site.
2. Choose FTP as the **Protocol** and set **Encryption** to the option that requires explicit TLS. This stops your password travelling as plain text.
3. Enter the host, username and password, then click **Connect**. If asked to trust a certificate on first connection, check the server name and accept.
4. Open `public_html` in the right-hand pane and drag files across from the left-hand pane.

### Creating a separate FTP account

If a designer needs access, do not share your main cPanel password. Create an account under **Files > FTP Accounts** and limit the **Directory** to the folder they need. Delete it when the work is done.

> ****Warning****
> 
> When you upload files with the same names, the FTP client asks whether to overwrite them. On a live site, back up the existing files first.

## Troubleshooting

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| Connection times out | Passive mode or a firewall | Enable passive mode in the client; try another network. |
| "530 Login authentication failed" | Incomplete username or wrong password | For FTP accounts, enter the full username (`ftp@example.com`). |
| Files uploaded but site unchanged | Wrong folder or browser cache | Confirm the files are in `public_html` and hard-refresh the page. |
| Upload stops halfway | Disk quota full or file too large | Check disk usage on the cPanel home page; upload big files via FTP. |

## Frequently asked questions

### Should I use FTP or SFTP?

Both are safe as long as FTP uses TLS encryption. SFTP works only if SSH access is enabled on your account; otherwise use FTP with TLS.

### Does File Manager have an upload size limit?

Very large uploads through the browser can time out. For archives of hundreds of megabytes, FTP is more reliable.

### Why can't I see hidden files such as .htaccess?

In File Manager, click **Settings** at the top right and tick **Show Hidden Files (dotfiles)**. FTP clients have a similar "show hidden files" option.

Stuck on a step? Open a ticket from the client area. Looking for a fast NVMe plan for your site? See our [Linux hosting plans](https://voligen.com/linux-web-hosting).
