Module File Uploads

edited September 2011 in Bug Reports
When specifying the "filename" in a module form field, the file itself uploads with the correct name -- with the extension. The corresponding column value becomes the specified "filename" without the extension.

Assuming the "filename" directive was meant to be specified without the extension, below is how I corrected this (starting at line 688 of /fuel/modules/fuel/controllers/module.php):

if (isset($posted[$file_tmp.'_filename'])) { // get file extension $path_info = pathinfo($file_info['name']); $field_value = $posted[$file_tmp.'_filename'].'.'.$path_info['extension']; }

Comments

Sign In or Register to comment.