Hi, yes you can do this using wfu_before_file_check filter. Here is an example script which uses the 2nd and 3rd userdata field (their inex is 1 and 2 respectively) to change the filename:
if (!function_exists('wfu_before_file_check_handler')) {
function wfu_before_file_check_handler($changable_data, $additional_data) {
$filepath = wfu_basedir($changable_data["file_path"]);
$fileext = wfu_fileext($changable_data["file_path"], true);
$value1 = sanitize_file_name(trim($changable_data["user_data"][1]["value"]));
$value2 = sanitize_file_name(trim($changable_data["user_data"][2]["value"]));
if ( $value1 != "" && $value2 != "" )
$changable_data["file_path"] = $filepath.$value1."-".$value2."-".time().$fileext;
return $changable_data;
}
add_filter('wfu_before_file_check', 'wfu_before_file_check_handler', 10, 2);
}
Regards
Nickolas