The node images module works perfectly using the default file system settings of file system path "file" and temporary directory "/tmp". If the former is set to something like "sites/example.com/files" (chmod 777) to support multi-sites, the upload keeps churning and no error message is given. Changing the temporary directory doesn't seem to make a difference, neither.

I suspect this is related to files.inc as well, but am not familiar enough with that code to comment.

Anyone else having the same problem?

Comments

ngstigator’s picture

Log says:
"The selected file sites/example.com/files/tmp/tmp_jCa7vo could not be uploaded, because the destination could not be found, or because its permissions do not allow the file to be written."

and:

Page not found: "sites/example.com/files/files/some_image.jpg"

Note the "files/files". I've run into this before with user pictures http://drupal.org/node/111407

Is this a core bug?

ngstigator’s picture

I should note that the "page not found" error is referring to an image that was successfully uploaded using default files system settings. Somehow changing to a site-specific files folder added another "files" to the filepath when viewing the node. Of course the image does not show up b/c there is no "files/files" directory.

ngstigator’s picture

Properly setting "Node images path" (in my case to "sites/example.com/files") cures the "files/files" (which appears because if node_image_path is not set then defaults to "files").

However, even though the images now upload, the javascript still churns away. It's not until I reload the page that there is any evidence that the upload was successful. Not great if user wishes to upload multiple images at once.

chrisfive’s picture

Seems to be the same problem as mentioned on this post: http://drupal.org/node/137422

caligari’s picture

Status: Active » Closed (fixed)

Patched in http://drupal.org/node/145174 : images directory is relative to drupal system file_directory_path().