Active
Project:
Webform Private Upload
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2011 at 08:52 UTC
Updated:
16 Mar 2011 at 08:52 UTC
In report pages:
The URL in the single Submission page is correct BUT the URL in Table report page (webform-results/table) is wrong and is impossible to download the file from this view (because the URL is the default one of Webform module) .
This is the Webform module function that create this link:
in file.inc
function _webform_table_data_file($data) {
$output = '';
$filedata = unserialize($data['value']['0']);
if (!empty($filedata['filename'])) {
$output = '<a href="'. base_path() . $filedata['filepath'] .'">'. $filedata['filename'] .'</a>';
$output .= ' ('. (int)($filedata['filesize']/1024) .' KB)';
}
elseif (!empty($filedata['error'])) {
$output = $filedata['error'];
}
return $output;
}
How i can override it?
Thanks!