Hi,

I don't know if it's a feature request or a minor bug report, but something is a little bit confusing in the user interface, and i suggest it to be changed. I'm using the multi-sites features of Drupal, and I'm storing files, pictures, avatars, etc ... for each site in it's own directory under $DRUPAL_ROOT/content/sitename/.

For each site:

  • In the image module settings (http://sitename.com/admin/settings/image), I entered image, and Drupal takes it as a subdirectory of $DRUPAL_ROOT/content/sitename/, it's converted to $DRUPAL_ROOT/content/sitename/image.
  • but in the image_import module settings (http://sitename.com/admin/settings/image), to have the upload path pointing to a subdirectory of $DRUPAL_ROOT/content/sitename/, I have to enter content/sitename/image_import/%U

Maybe is it thought to be like that, but I find it a little bit confusing not to have both modules having the same behaviour. In fact, i've been wondering for a little time why I had the error message "The image import directory, image_import/myusername/, is missing or is not writable by the web server." as I had entered image_import/%U in the default import path field.

Now, do what you want with this issue, and thanks for this deeply needed module. :-)

Comments

syscrusher’s picture

Assigned: Unassigned » syscrusher
Category: bug » feature

I see your point. It's not a bug, per se, because the code is working as designed, but I can see that this would be an inconvenient design choice. I'll look into making the directory root detection smarter.

Scott