Site Management and Collaboration > Getting and putting files > Putting files onto a remote server |
Putting files onto a remote server
Using the Put command copies files from the local site to the remote site, generally without changing the file's checked out status. There are two common situations in which you use Put instead of Check In: when you're not in a collaborative environment and you aren't using the Check In/Check Out system, or when you want to put the current version of the file on the server but you're going to keep editing it.
Note: If you put a file that didn't previously exist on the remote site and you're using the Check In/Check Out system, the file is copied to the remote site and is then checked out to you for continued editing.
If you want to put a file on a remote server and check it in, use the Check In command. See Checking in and checking out files on a remote server.
To put only those files for which the local version is more recent than the remote version, see Synchronizing the files on your local and remote sites.
Note: Do not use special characters (such as é, ç, or ¥) or punctuation such as colons, slashes, or periods in the names of files you intend to put on a remote server. Many servers change these characters during the upload process, which causes any links to the files to break.
To put files on a remote server:
1 | Choose Window > Site Files to open the Site window. |
2 | At the top of the Site window, choose the desired site from the current sites list pop-up menu. |
3 | If you're using FTP to transfer files, you may click Connect to open a connection to the remote server, which allows you to see what's on the remote site before transferring any files. However, clicking Connect is not required; when you click Put, Dreamweaver connects automatically. |
4 | Select the desired files to upload. (Usually you select these in the Local pane, but you may instead select the corresponding files in the Remote pane if you prefer.) |
5 | Click Put, or choose Put from the context menu or the Site menu. |
6 | If the file hasn't been saved, a dialog box may appear (depending on your preference setting in the Site panel of the Preferences dialog box) allowing you to save the file before putting it on the remote server. To save the file, click Yes; to put the previously saved version on the remote server, click No. |
If you choose not to save the file, any changes you've made since last time you saved will not be put onto the remote server. However, the file remains open, so you can still save the changes after putting the file on the server if you want. | |
7 | To upload dependent files, click Yes; to skip them, click No. (If the remote site already contains copies of the dependent files, click No.) To avoid being asked about dependent files in future uploads, select the Don't Ask Me Again option. |
Note: To stop the file transfer at any time, click the Stop Current Task button (the red stop sign with the white X in the lower right corner of the Site window) or press Esc (Windows) or Command+period (Macintosh). The transfer may not stop immediately.
If the file is currently open in a Document window, you can instead choose Site > Put from the Document window.
Dreamweaver records all FTP file transfer activity. If an error occurs when you are transferring a file using FTP, the Site FTP log can help you determine the problem. To display the log, choose Window > FTP Log from the Site window (Windows) or Site > FTP Log (Macintosh).