Skip to content
Snippets Groups Projects
Commit 647b3ac1 authored by Jared Hancock's avatar Jared Hancock
Browse files

forms: Add print and export for the upload field

parent 7517800a
No related branches found
No related tags found
No related merge requests found
......@@ -1353,6 +1353,14 @@ class FileUploadField extends FormField {
}
return implode('<br/>', $links);
}
function toString($value) {
$files = array();
foreach ($this->getFiles() as $f) {
$files[] = $f['name'];
}
return implode(', ', $files);
}
}
class Widget {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment