function webform_multifile_url in Webform Multiple File Upload 6
Same name and namespace in other branches
- 7 multifile.inc \webform_multifile_url()
Helper function to create proper URLs for uploaded file.
Note: This function is identical to webform_file_url
4 calls to webform_multifile_url()
- theme_webform_display_multifile in ./
multifile.inc - Format the output of text data for this component
- theme_webform_render_multifile in ./
multifile.inc - Render a File component.
- _webform_csv_data_multifile in ./
multifile.inc - Implementation of _webform_csv_data_component().
- _webform_table_multifile in ./
multifile.inc - Implementation of _webform_table_component().
File
- ./
multifile.inc, line 748 - Webform module file component.
Code
function webform_multifile_url($filepath) {
if (!empty($filepath)) {
$info = pathinfo($filepath);
$file_url = file_create_url($info['dirname'] . '/' . rawurlencode($info['basename']));
}
return isset($file_url) ? $file_url : '';
}