In order to configure Dreamweaver for uploading your files please do the following:
Step 1: Click on Site at the main menu bar and select New Site:
Step 2: Put some site name (for example my_website) and select Local Site Folder where web pages will be stored on your PC:
Step 3: Then click on New server in the Servers section and put the following settings:
Server name: Hostname
Connect using: FTP
FTP Address: Hostname
Port: 21
Username: your cPanel
Password: your cPanel password
Root Directory: public_html/ or /
Web URL: http://your_domain_name
Step 4: Hit Test to check if the settings are correct and the connection is successful:
Step 5: Now you can create your web pages. Once it is done, you can upload them on the server this way: find the Files window and click on the Put file(s) button.