I am puzzled: it seems like the attachment module was working fine with 4.6 a little over a week ago and now it can't upload files. (I've filed a support request but haven't heard anything back, so I'll see if someone in the forum area knows anything). The core upload module and the image module both upload fine, so Drupal seems to be handling uploads fine. However, with filemanager and the attachment.module I get the following message when I try to "Add" a file to Drupal:

"File copy failed: no directory configured, or it could not be accessed.
Error saving upload to filestore."

On closer inspection of the admin logs, I don't find additional errors. I have the most liberal permissions on my file folders (777), and I have created an Attachments directory within my files directory, in case filemanager needs this to store attachments. The directory settings in filemanager are also accurate: the absolute path and the URL are correct and they are the path is the same one that works for the other modules. I have even reverted back to an older version of the attachment and filemanager modules that were first updated for 4.6. No luck so far.

Thanks in advance for any suggestions on how to get this module working!

Comments

LuckyOne’s picture

You have to put in the full path to the directory. Something like '/var/www/html/myfiles', not just 'myfiles'. At least this worked out fine for me.

bomarmonk’s picture

Filemanager was still finding the files path before the change (no warning that the directory did not exist), but using the entire root path (/home/myaccount/WWW/drupal/files) did the trick! The attachment module now works! Thanks for the help!

rup3rt’s picture

Is it the same type of directory problem as in the 4.6 image module?
http://drupal.org/node/20855 --- from the post "Found it."

Is it related to PHP safe mode and creating directories?
http://drupal.org/node/15408

The fix would then be to delete the directory (ownership problem) and recreate it (with 755 permissions)

I am barking up a wrong tree here?