Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
upload.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Dec 2010 at 11:54 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
congtu2002c commentedComment #2
rouhipour.marjan commentedHello,
Check the file name when uploading file.
Go to modules/upload/upload.module and modify "_upload_form" function.
Add"if($file->filename!='')" in for loop as follow:
foreach ($node->files as $key => $file) {
$file = (object)$file;
if($file->filename!=''){
$description = file_create_url($file->filepath);
.....
}
}
Hope it helps.
Comment #3
rouhipour.marjan commentedThis is the patch file of this modificaiton in comment #2.
Comment #4
dddave commentedComment #6
fabianx commentedPatch needs work. Not sure we'll ever fix this for D6 though ...