FTP TUTORIALS & GUIDES

How to Upload Files Using FTP: Step-by-Step Guide

Learn how to upload website files using FTP, FTPS, or SFTP. Connect an FTP client, transfer multiple files and folders, manage permissions, secure your data, automate uploads, and troubleshoot common connection and file-transfer errors.

Updated: August 23, 2026
By: RSH Web Editorial Staff

Hosting from $2.99/mo
  See Plans    Contact Us

Menu

How to Upload Files Using FTP: Step-by-Step Guide

Learn how to upload website files using FTP, FTPS, or SFTP. Connect an FTP client, transfer multiple files and folders, manage permissions, secure your data, automate uploads, and troubleshoot common connection and file-transfer errors.

File Uploads

File Transfer Protocol (FTP) is a standard method for transferring files between a local computer and a web server, making it useful for website management tasks such as uploading content, updating files, or performing backups. cPanel hosting accounts commonly support FTP and FTPS (FTP over SSL/TLS). SFTP (Secure File Transfer Protocol over SSH) may also be available when SSH access is enabled by the hosting provider. Both FTP clients and cPanel’s File Manager can upload multiple files, but an FTP client is often more convenient for transferring entire folders, large websites, or frequent updates.

Why Use FTP for File Uploads?

Bulk Transfers

Upload multiple files or entire folders and manage large transfer queues efficiently. cPanel’s File Manager also supports multiple-file uploads, but an FTP client is often more convenient for large or frequent transfers.

Cross-Platform

Works with FileZilla, WinSCP, Cyberduck, and other clients on Windows, macOS, or Linux.

Secure Options

Supports FTPS and SFTP for encrypted transfers, protecting website code and user information.

Automation

Enables scripted uploads for backups or scheduled updates, and dedicated FTP accounts for team collaboration.

FTP vs. FTPS vs. SFTP

ProtocolPortEncryptionWhen to use
FTP21NoneNon-sensitive data on trusted networks only. What Is FTP
FTPS21 (explicit)SSL/TLSCreated FTP accounts when the host supports FTP over TLS.
SFTP22SSHWhen SSH access is enabled. Separate protocol from FTP.

Prerequisites

  • 1cPanel Access: Log in with the URL, username, and password from your hosting provider.
  • 2FTP Account: Create one in cPanel if needed. How to Create an FTP Account
  • 3FTP Client: Install FileZilla, WinSCP, Cyberduck, or another client. Choosing the Right FTP Client
  • 4Server Details: Hostname, IP, username, password, and port. FTP/explicit FTPS commonly use 21. SFTP commonly uses 22 and requires SSH access.
  • 5Stable Connection: Avoid networks that block FTP ports. Troubleshooting FTP Issues

Step-by-Step Guide to Uploading Files

Step 1: Set Up an FTP Account
  1. Log in to cPanel and navigate to Files → FTP Accounts.
  2. Under Add FTP Account, enter Log In (e.g., uploader becomes uploader@yourdomain.com), Domain, Password, Directory (e.g., public_html/uploads), and Quota.
  3. Click Create FTP Account and note the credentials.

Note: You can use your cPanel username and password for FTP access to the entire home directory without creating a new account.

Step 2: Install and Configure an FTP Client

Example using FileZilla:

  1. Download FileZilla from the official FileZilla website.
  2. Install it for Windows, macOS, or Linux. Set Up FileZilla
  3. Open File → Site Manager (Ctrl+S), click New Site, and enter Protocol (SFTP or FTP with TLS), Host, Port (22 or 21), Logon Type, User, and Password.
  4. In Transfer Settings, enable Passive mode.
  5. Click Connect. Accept host keys (SFTP) or certificates (FTPS) for trusted servers.
Step 3: Upload Files
  1. Navigate Directories: Left pane is local; right pane is the server (e.g., /public_html).
  2. Select Files: Hold Ctrl (Windows) or Cmd (macOS) for multiple files.
  3. Transfer Files: Drag and drop or use Upload / F5 Copy. Watch the transfer queue.
  4. Verify Uploads: Check the server directory and open the live URL.

Tip: For large files (>100MB), FTP clients like FileZilla are more reliable than web-based tools because they are not limited by typical browser upload size caps.

Step 4: Manage Uploaded Files
  • Rename/Delete: Right-click files in the client.
  • Set Permissions: Common values are 644 for files and 755 for directories.
  • Create Directories: Use the client command (e.g., WinSCP F7).

Common FTP Upload Errors

ErrorLikely CauseWhat to Check
530 Login authentication failedWrong username or passwordUse the complete FTP username from cPanel and reset the password if needed.
Connection timed outHostname, port, protocol, or firewallFTP/explicit FTPS commonly use port 21; SFTP commonly uses 22 when SSH is enabled.
Failed to retrieve directory listingActive/passive mode or blocked data portsEnable passive mode. Confirm FTPS data-port and firewall settings with the host.
Permission deniedNo write access to the folderConfirm the assigned directory. Files 644, directories 755.
404 after uploadWrong document rootUpload the main site to public_html.
Old version still showsBrowser, CDN, or server cacheClear caches and confirm the updated file is in the correct folder.
Homepage does not loadMissing or misplaced index filePlace index.php or index.html in the document root.
Missing images, CSS, or JSWrong paths or case-sensitive namesReview the failed-transfer queue. Linux filenames are case-sensitive.
Transfers repeatedly failUnstable connection, disk space, or quotaCheck the queue, hosting storage, FTP quota, and connection stability.

Security Best Practices

  • Use SFTP or FTPS: Avoid unencrypted FTP. Securing FTP Transfers
  • SSH Keys for SFTP: Configure keys in cPanel’s SSH Access when SSH is enabled.
  • Restrict Directory Access: Limit accounts to folders such as /public_html/uploads.
  • Monitor Connections: Use FTP Connections to terminate unused sessions.
  • Disable Anonymous FTP: Turn it off in cPanel’s Anonymous FTP interface.

Automating FTP Uploads

Integrating with cPanel

Frequently Asked Questions

Where should I upload my website files?

Put the main site in public_html so index.html or index.php sits in that folder, not inside an extra subfolder. Addon domains and subdomains often use a different document root. After you connect, open the remote pane, confirm the path, then drag files there. A file uploaded one level too high or too low will not appear at your domain. Basics are in what FTP is used for.

Can I upload an entire folder instead of one file at a time?

Yes. Dual-pane clients such as FileZilla and WinSCP let you drag a whole directory onto the server pane. The transfer queue lists each file so you can retry failures without starting over. Keep the local folder structure the same as the remote site. For a few small files, cPanel File Manager is enough. For large sites, a dedicated client is faster. Compare tools in choosing an FTP client.

Why does the site still show the old page after I upload?

The new file may be in the wrong folder, the browser or CDN may still be serving a cached copy, or a filename does not match exactly. Linux servers treat Photo.jpg and photo.jpg as different files. Confirm the remote path, clear cache, and reload. If the homepage is blank, check that index.php or index.html is directly in the document root, not nested in an extra directory.

What does a 404 after an FTP upload usually mean?

A 404 means the browser requested a path that is not in the document root. Common causes are uploading into the home directory instead of public_html, using the wrong addon-domain folder, or a mistyped filename. Open the remote pane, match the URL to the real folder, and move the file. Then test the exact address. Connection and path errors are covered in FTP troubleshooting.

Should I use FTP or cPanel File Manager to upload files?

Use File Manager for a couple of quick replacements in the browser. Use an FTP or SFTP client when you need a transfer queue, resume support, folder uploads, or repeated deployments. File Explorer can map FTP on Windows, but it lacks strong logs and easy FTPS controls. For that built-in method, see uploading with File Explorer.

Why do some files fail in the transfer queue?

Failed items often point to a dropped connection, a full disk or FTP quota, a permission error, or a firewall blocking data ports. Enable Passive mode for FTP or FTPS, retry only the failed queue, and check the destination folder permissions. Files commonly use 644 and directories 755. Create a limited account first with an FTP account in cPanel if you are still using a shared login.

Do I need FTPS or SFTP just to upload a website?

Plain FTP will move files, but it sends the password and the files in clear text. Use explicit FTPS for a cPanel FTP account when the host supports TLS. Use SFTP only when SSH is enabled for that username, usually the primary account. Save the protocol in Site Manager so every later upload stays encrypted. More hosting and file-management articles are on the blog index.

What should I check before overwriting live files?

Download a copy of the live file first, or keep a current backup, then upload into the correct document root. Avoid replacing wp-config.php or .htaccess unless you intend to change them. After the queue finishes, load the page in a private window and confirm images and scripts still resolve. Good habits are listed in file management best practices.

Add Comment

* Required information
Drag & drop images (max 3)

Comments

No comments yet. Be the first!

Crafted by our talented master copywriters

RSH Web Services offers a full range of web hosting services that can be tailored to your business. Our cPanel hosting packages are tailored to meet your needs and budget. From personal, professional and, business