Before proceeding with this, do understand that it is not possible to upload a folder through the cPanel File Manager >> Upload interface.

If you want a folder present before uploading the file(s), first create the new folder, then upload the file(s).

Or consider using an SFTP client.

You can see our documentation on recommended SFTP clients at

  • How To Use SFTP Client For cPanel File Management
  • How To Manage Your File In cPanel With SFTP

We are assuming that you have successfully created a new web hosting account.

We also assume that you have logged in to your brand-new cPanel hosting panel interface.

With these done, scroll to the Files section and click on the File Manager icon.

 

Ensure that you are in the right folder or directory.

You can verify your current working directory by looking at "Go Back to “/home/$username/public_html”

Select the Upload option from the toolbar.

When the new page opens in a new tab, either highlight the files in your local machine and then drag them into the space provided.

Or use the "Select File" option to select the file you wish to upload.

cPanel is intelligent enough not to allow you to mistakenly overwrite an existing file.

So when you upload a file, it will ask you to verify that you wish to overwrite any existing file with the same name.

If you want to overwrite this/these, either:

  • tick the "Overwrite existing files" options before uploading or
  • accept that you wish to do that during the actual upload.

 

To upload a file via the command line, you can use Secure Copy Protocol over SSH

Before doing this, verify that your hosting package has SSH Access enabled.

On our web hosting platform, every hosting package (except the free hosting package) has SSH access.

 

To copy a local file in your machine to your cPanel remote host:

scp Documents/$project/$filename $username@domain.com:/home/$username/public_html/$filename

 

If you want to copy multiple files from the local machine to your cPanel host machine, then:

scp Documents/$project/$filename1 $filename2 $filename3 $username@domain.com:/home/$username/public_html/$filename

 

To copy an entire project directory in Documents to your cPanel host machine:

scp -r Documents/$project $username@domain.com:/home/$username/public_html/$project

هل كانت المقالة مفيدة ؟ 0 أعضاء وجدوا هذه المقالة مفيدة (0 التصويتات)