How to Upload a Folder in cPanel File Manager
To upload a folder in cPanel, zip it on your computer, upload that zip in File Manager, and click Extract in the destination folder. File Manager cannot upload a folder directly. For the main site, extract into public_html, then delete the zip. A large archive is safer over SFTP.
The zip-then-extract routine, the right document root, SFTP for big folders, and the permissions that keep a cPanel site working.
knowledge
- Read time
- 4 min
- Sections
- 7
- Updated
- 14 Nov 2026
- Written by
- WebJi® team
Last editorial update: 15 November 2026.
How do you upload a folder in cPanel File Manager?
Zip the folder on your computer, upload that one archive through File Manager's Upload button, then click Extract in the destination — File Manager cannot upload a folder as a folder, and one archive finishes faster than hundreds of separate files.
- On your computer, compress the folder to a
.zip. cPanel's Extract handles zip; do not upload a.rarunless you have confirmed this account accepts it. - Log in to cPanel (the panel login is separate from the WebJi® client area where invoices and tickets live) and open Files → File Manager.
- Navigate to the destination — the main site lives in
public_html— and confirm the path in the left column. - Click Upload, choose the zip, and wait until the progress row completes. A cancelled row leaves a partial file.
- Back in File Manager, select the zip and click Extract. Confirm the extraction path is the folder you opened, not a nested path you did not intend.
- Delete the zip once the files are in place, then open the site URL in a private window so cache cannot hide the result.
If the homepage comes up blank, the files are probably one folder too deep: the site files must sit in the document root itself, not inside an extra folder the zip created. A wider tour of the file tools is in the cPanel File Manager guide.
Which document root does the folder belong in?
The folder belongs in the document root the domain already uses — public_html for the primary domain — with index.php or index.html sitting directly inside it, not one level down.
| Site type | Document root | Address it serves |
|---|---|---|
| Main domain | public_html | yourdomain.com |
| Addon domain | Its own folder, often named after the domain, shown on the Domains screen | The addon domain name |
| Subdomain | The folder chosen when the subdomain was created | sub.yourdomain.com |
Uploading a whole website is the same job: zip the site locally, extract into the document root, and check that the homepage file is visible in that directory listing. If Extract created a single inner folder, move the files up one level or the domain will show a listing, a 404, or the wrong page.
How do you upload a folder that is too large for the upload screen?
Switch to SFTP in FileZilla — protocol SFTP, port 22, the hostname from your welcome mail or the cPanel FTP Accounts page — and drag the local folder into the remote public_html. The main cPanel username already connects; create an account under FTP Accounts only if you need a limited user for someone else. The connection steps are in the upload a website using FTP guide.
Prefer SFTP over plain FTP on any host that offers it: FTP on port 21 sends the password in the clear, while SFTP on port 22 encrypts the login and the files. If FileZilla reports connection refused on port 21, change the protocol and port before you change the password. For command-line copies between servers, the scp transfer guide covers the same job over SSH.
Why did the folder upload fail, time out, or break the site?
Two causes cover almost every failure: the file exceeds the limit printed on the upload screen, or the browser dropped a long transfer — and after a successful extract, wrong permissions or a misplaced folder break the site instead.
- Too large: split the site into more than one zip, or use SFTP, which is not tied to that page's timeout.
- Forbidden page after extract: directories should be 755 and files 644. Select the folder in File Manager, open Permissions, and set those values. Never 777.
- Blank homepage: files extracted one folder too deep — move them up into the document root.
- Old page still showing: browser cache; recheck in a private window before you re-upload anything.
How do you stop Extract from overwriting a live site?
Read the archive's file list before extracting into a live public_html — Extract writes over files that share a name, and a zip can overwrite index.php or .htaccess if those names are inside it.
When unsure, extract into an empty subfolder first, check the homepage in that subfolder, then move the verified files into place. If the live site breaks anyway, restore from the backup you took before the upload — the cPanel backup and restore guide walks that path.
One product note: WebJi®'s cPanel hosting is a separate product from its Linux shared plans, at ₹297/mo before 18% GST for 20 GB disk, 200 GB bandwidth, 10 email accounts and 1 domain — the established figure; checkout confirms current charges.
Frequently asked questions
Can cPanel File Manager upload folders directly?
No. The Upload button takes files, including a zip file; it does not take a folder from your computer as a folder. Extract is what recreates the folder structure on the server, which is why the zip-then-extract method is the standard route.
How do I upload multiple files at once in cPanel?
Put them in one zip and extract it, or select several files on the upload screen if the set is small. A single zip is the reliable option once the count gets into the hundreds, because each separate upload is another chance for the browser to drop the transfer.
Why does File Manager fail on big files?
The upload screen refuses a file larger than the limit it prints on that page, and a long browser upload can time out even under the limit. Use SFTP in FileZilla for a large archive — port 22, the cPanel username, no browser timeout involved.
Where do website files go in cPanel?
The primary domain uses public_html; an addon domain uses the directory listed for it on the Domains screen, and a subdomain the folder chosen at its creation. The homepage file — index.php or index.html — must sit directly in that directory, not inside a nested folder.
What permissions should uploaded folders and files have?
Directories 755 and files 644. If a page returns forbidden after extraction, select the folder in File Manager, open Permissions, and set those values. Never use 777 — it lets any process on the server write to your files and is a classic hack vector on shared hosting.
Last editorial update: 15 November 2026. Prices follow the dated sources on this page; checkout confirms current charges.
Ready to get started with WebJi®?
Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.