...
$upload_path = assets_server_path('graphics/', 'images');
$fields['file_name'] = array('label' => 'File name');
$fields['file_name_upload'] = array('label' => '... OR upload a file', 'type' => 'file', 'upload_path' => $upload_path, 'overwrite' => TRUE);
$posted[$tmp_field_name] = url_title($field_value, 'underscore', TRUE);
$posted[$field_name] = url_title($field_value, 'underscore', TRUE);
$posted[$tmp_field_name] = url_title($field_value, 'underscore', FALSE);
$posted[$field_name] = url_title($field_value, 'underscore', FALSE);
It looks like you're new here. If you want to get involved, click one of these buttons!