• CCK version = 6.x-2.8
  • ImageField version = 6.x-3.7
  • permissions for tmp and files directory = rwxrwxrwx
  • public download method
  • results: I work with both a staging server and a production server. When I upload an image with ImageField, the link created is "hard coded", by which I mean that the image source begins with "http://www.nameofmystagingserver.be/sites/default/". I expected that the first part of this URL would be left out, so that I don't have to relink the images when working on the live server ("/sites/default/"). Is there a way of doing that?

Comments

quicksketch’s picture

Category: bug » support

Clear your Drupal caches at admin/settings/performance, and all links should be updated to use the new location. Unless you've actually coded these images directly in the node body or somewhere like that, in which case Drupal uses exactly what has been typed. In that case you could use the Pathologic module if you're going to be moving content back and forth regularly.

Claude Cuvelier’s picture

Status: Active » Closed (works as designed)

You are absolutely right, quicksketch.
Closing this issue, works as designed.