Where do I upload my files once connected via FTP?

Overview

This article uses example.com as a general site folder. Make sure to look for your actual domain folder name when logging in.

Your domain's folder is known as your site's root directory.

Other hosts reference this as the public_html directory. It functions the same way at DreamHost.

Once you’ve connected to your web server via FTP, you’ll most likely see two windows in your FTP client. The following example shows the main screen in FileZilla:

Filezilla_01.png

The left pane is your home computer. The right pane is your DreamHost server.

Looking at the right side, you'll notice that you are not yet in your website's directory. This is because when you originally log in, you're in your USER's home directory. This is where all files under your webserver's username live.

To work on your site, click into your website folder.

Filezilla windows.fw.png

The left pane

You must navigate to the folder on your computer where your files are stored. From that directory, you can upload files to the server, or download from the server.

The right pane

On the right, you'll see your DreamHost web server. You should already have clicked into the directory name of your website.

This example shows that the user is in their website directory. You can see this because the Remote site is pointed to /home/exampleuser/example.com. Please note that different clients may not refer to this as Remote site. The important thing is that you're in your user's directory.

If you look at the window below that, you’ll see the files and folders within that directory. This example shows several WordPress files.

Uploading files

Once both panes are set to the correct directories, you can right click files or folders to upload or download.

For example:

  1. In the left window (your computer), locate the file or folder you'd like to upload.
  2. Right-click it.

    Filezilla_upload_to_server.png

  3. From the pop-up that appears, choose 'Upload'. This uploads the file to the server. You can immediately see the file in the right pane. If the right pane is set to your website directory, the file is then live on your website.

Downloading files

To download from the server, right click a file or folder and choose 'Download'.

Filezilla_download_from_server

  1. If you want to download your entire website, navigate back to the user directory. You can see this in the 'Remote site' field.
  2. Right-click the website folder titled example.com.
  3. From the pop-up that appears, choose download. The full folder and all of its files are then downloaded to your computer.

A final note on the directory structure:

  • Your user's directory is where you'll see all of your user config files, Maildir, logs, and site folders.
  • You will never upload your content to this directory.
  • Always make sure you're in your site's directory when uploading site content. For example:
/home/username/
               .alias
               .bash_profile
               .bashrc
               .cshrc
               /Maildir
               /logs
               /example.com

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?