Closed (fixed)
Project:
Upload nodes
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2011 at 19:57 UTC
Updated:
29 Feb 2012 at 20:00 UTC
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
Comment #1
sw3b commented+1 on this one ! Solve problem on my side too.
Comment #2
pyrollo commentedHello,
I've commited that change in git version.
Thanks for that participation !