Normally files are uploaded to /sites/default/files. However if there is a directory name specified in the file_directory field, then the file should be uploaded to the specified subdirectory in /sites/default/files

What happens however is that it merges the subdirectory name with the file name, and puts the file in /sites/default/files.

The bug is in upload_nodes.module, line 630:
$destination = $destination_dir . $uploaded_file['name'];

When I changed it to this, it appeared to work:
$destination = $destination_dir . "/" . $uploaded_file['name'];

Anyway, this is a very useful module, so thanks to the developer. It could be ready for beta?

Comments

sw3b’s picture

+1 on this one ! Solve problem on my side too.

pyrollo’s picture

Status: Active » Fixed

Hello,

I've commited that change in git version.

Thanks for that participation !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.