when setting up your site in dreamweaver, you must set a local path for the file. Dreamweaver cannot create the files entirely on the remote server.
you don't have to use the local server for testing (although it is quicker and a better way to work).
in the site definition, you can set the testing server to use the remote server.