Your best friend for file transfer.Fetch
images not appearing when editing HTML file (5 posts)
- Started 4 years ago by SteveH
- Latest reply 4 years ago from SteveH
I've chosen to use Adobe GoLive as the default program to modify my HTML files when I use the 'Edit' feature in Fetch 5.6. However, when GoLive displays the HTML file to edit, images on the page do not display. I instead get a generic image icon in their place. It doesn't matter if I use a relative link for the image or an absolute link.
Images also do not appear in Quick Look - I get boxes with question marks in them instead.
Is there a setting to fix this? Thanks in advance!
Scott McGuire Administrator
This is normal behavior when you use the Fetch Edit command or Quick Look for an HTML file on the server. Let me explain what is happening.
When you choose the Edit command in Fetch:
* Fetch downloads a copy of the selected file from the server into a temporary location on your hard drive.
* Fetch opens the copy of the file in your chosen editing program, in this case, Adobe GoLive.
* You make changes to the file.
* When you save the file in the editing program, Fetch is watching and uploads the copy of the file back to the server, replacing the one on the server.
As you probably know, the images on your webpage are not actually part of the the HTML file; they are stored as separate files, usually (but not always) in the same folder as the HTML file. When you open an HTML file in GoLive, GoLive looks for the image files and if it finds them, it shows them in the correct place on your webpage so that it looks like a complete webpage - but the image files are not really part of the file you're editing.
When you select an HTML file in Fetch and choose the Edit command, Fetch downloads just the HTML file to a special location on your Mac for editing - but the image files are still on the server. So since the image files are elsewhere (on the server) , GoLive cannot display them, resulting in the generic image icon in their place.
You can make changes to the text of an HTML page while using the Fetch Edit command, which is useful in many cases, but you can't see images referenced by the HTML file.
The Quick Look command works similarly - when you select an HTML file and choose Quick Look in Fetch, just the HTML file is downloaded to the Mac for display, not the associated image files. (Fetch has no way of knowing which image files might be referenced by the HTML file, so it can't download them as well.)
(While you may have an entire copy of the website on your Mac as well, Fetch doesn't know about that - when you use the Edit or Quick Look command, it just knows about the file on the server that you've asked it to edit or view.)
I hope this clarifies what is going on, please let us know if you have further questions.
Thanks for the reply, Scott. You mentioned that Fetch downloads a copy of the HTML file to a temporary location on my hard drive. Can I store applicable images in this location so that an HTML file will 'see' them and thus display them during editing or Quick Look?
Scott McGuire Administrator
No, the temporary folder location changes each time you use the Edit command (its name is randomly generated by Mac OS X), so you cannot move the images there.
If you really want to edit your HTML files with the images intact, the best thing to do is have a complete copy of your website on your Mac, open up the HTML file from your local version of the website, make changes, and once you are done, use Fetch to upload the changes manually.
You might want to look into the Fetch Mirror command, which will compare a folder on your Mac with a folder on the server, and then only upload new or changed files to the server. That way, you could make your edits in your the copy of the website on your Mac's hard drive, and then use the Mirror command to upload any changes you've made to the site. For more information, see the mirroring a local folder to a remote folder and Mirror window topics in Fetch Help (or click on the link here).
Thanks, Scott. I edit files locally already. But I will look into the Mirror command since that seems like a good compromise.
- Page 1
This topic has been closed.