Closed (fixed)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2008 at 16:47 UTC
Updated:
14 Nov 2008 at 02:13 UTC
Undefined variable: source in field_file_save_file() (field_file.inc)
if (!file_copy($file, $file->destination, FILE_EXISTS_RENAME)) {
form_set_error($source, t('File upload error. Could not move uploaded file.'));
watchdog('file', 'Upload error. Could not move file %file to destination %destination.', array('%file' => $file->filename, '%destination' => $file->filepath));
return 0;
}
$source should be changed to $file->source
and $file->filepath should be changed to $file->destination
Comments
Comment #1
dopry commentedCan you please roll a patch? see: http://www.drupal.org/diffandpatch
Comment #2
pasqualleI do not use this module, I just tested that function. I do not have the time now to work on something I do not use, sorry..
Comment #3
dopry commentedfixed in HEAD.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.