relative or absolute image path for import

cdiggity's picture
Offline
Bug Finder
Joined: 09/14/2007
Juice: 40
relative or absolute image path for import

Hi Lyle,

The image-path field in the XML file generated by the export function is a relative path so I assumed it would be for the import function. Relative paths seem to be what are stored in the files table as well.

I think the uc_importer module should be able to import the XML files it generates with the export function.

Therefore either:
a) export relative paths in the XML file and expect relative paths in the image-path field when importing an XML file
b) export absolute paths and expect absolute paths in image-path field when importing
c) treat paths starting with '/' as absolute and others as relative to the drupal directory. Don't know how this works on windows.

and update http://www.ubercart.org/docs/user/354/importing_data to let us know which it is.

Personally I think the paths should all be relative to the drupal directory but I don't know what the drupal convention is.

-C

import image local path fix By: cdiggity (17 replies) Sun, 09/16/2007 - 02:39