File Manager is useful for a small deployment or a single file change without installing an FTP client. The correct destination matters: each domain can have its own document root, and uploading into the wrong folder will not update the intended website.
IN THIS ARTICLE
What you need before you begin
Open Domains and confirm the target’s Document Root. Keep a backup of anything you will replace. For a larger release, use a deployment or file-transfer workflow that lets you inspect many changes and retry failed transfers.
01 Upload website files with cPanel File Manager
- Open File Manager and navigate to the verified destination. The primary site often uses
public_html, but do not assume every domain uses that folder. - Select Upload and choose the local file. Read any overwrite prompt carefully; replacing a file changes the live site immediately.
- Wait for the upload to complete, return to the file list and refresh it. Check the filename, size and destination.
- For a folder of files, upload a suitable archive and inspect its contents and extraction path before extracting. Avoid creating an unintended extra top-level folder.
- Remove temporary installation archives from public access after confirming the deployment. Keep backups in protected storage rather than beside publicly served pages.
02 Example: avoid an extra folder during extraction
Suppose a static-site package is intended to place index.html in the domain document root, but the archive contains a top-level folder called site-build. Extracting that archive as-is may place the file inside site-build/index.html instead of the intended root.
Inspect the archive structure before extraction and compare the resulting directory with the verified document root. Correct the package layout through the planned deployment process, then test the exact public address. Do not move unrelated application folders simply because their names look similar.
Confirm the expected result
Visit the exact public URL and test the changed function. If the browser shows old content, compare the uploaded file and relevant application/CDN cache before repeating the upload.
Why did the File Manager upload fail or break the website?
A failed upload may reflect quota, upload-size limits or permissions. Do not broadly change permissions to make an upload succeed. If the site breaks, restore the replaced file from your backup and review the package before trying again.