I recently finished a website for a client whose in-house graphic designer was to take over updates. To that end, I spent some time "hatting" him on how to use Dreamweaver 8 — including using its internal FTP.
I've always used WS_FTP for uploading files, with brief usage of WinSCP because in earlier versions of WS_FTP, when uploading securely (SFTP), weird line-endings were added to files. This would "break" .cgi programs, and it would sometimes take a while to determine what the problem was.
I'll also admit to a certain "geek" smugness about using a "real" FTP program rather than a WYSIWYG's internal uploader. Tsk. <lol>
At any rate, having seen how slick DW8's internal FTP is, I've now tried it for my own sites and I'm must say I'm quite pleased. Thing is, DW8 shows you a website's local files in a "tree" fashion (see picture); select one or more files, press a button, and you're done. (Contrast that with starting your FTP program, maneuvering to the proper local and remote folders, etc.) AND it supports passive FTP and secure FTP (SFTP).
Setting up a Site: To make this work, you have to set up the copy of the website on your hard drive as a "Site" — this identifies to DW that everything in a particular folder is "a website". You then get other neat features, such as the ability to make Dreamweaver templates that update your entire site when you edit them (the Templates). Or enabling DW to update links to a file if you move it or change its name. On the File/Edit menu:
Site > New
Then just fill out the popup window … site name, browse to location on the hard drive, etc. The FTP stuff is contained in the "Remote Info/Advanced" tab. By default, it's set to "none" so none of the information boxes display; just select "FTP" and fill in your info. Then, simply select a file, press the "up" arrow (the glassy blue one), and it'll upload. It's great: you're already looking at the file in DW's tree view, so why not be able to upload from there?
IMPORTANT – Path to Root: Dreamweaver will upload files and folders exactly as they sit in the copy on your local drive. For example, if images are in a subfolder of the "root" directory, DW will emulate that, so it is vital to give DW8 the proper path to the website's root directory … root being where the home page resides. That would not be mysite.com but something like:
For this reason, I have I have not yet tried uploading .cgi scripts with it — simply because on many sites, the cgi-bin is *above* the website's root, and to have DW emulate that, I'd have to set up every site on my hard drive that way, which I'm not prepared to do. At least, today.
At any rate, I lump this little convenience into the "one less hassle" group. I've been used to doing things a certain way, but this is so intuitive that it's quite brilliant in its obviousness and simplicity.
Once more, Macromedia has turned my head. LOL
Dreamweaver FTP Line Endings: I discovered that Dreamweaver was apparently adding Windows line endings to files upon upload (whereas this didn't occur with WS_FTP when uploading files created in DW). A discussion at the WordPress forums noted that this issue is controlled in Preferences -> Code Format — select the Unix line endings. I've tested it, and it works (on a UNIX server, of course).
6 Comments to "Dreamweaver FTP"
Have your say ...
First-time comments will be held for moderation (but comments are appreciated). Otherwise, just be courteous. If your name is a bunch of keywords, your comment will be deleted. Don't post links unless highly pertinent. Posters must be 16 or older.