I am having problems trying to change the uploaded file name. I tryied with this code I saw in the forum but it does no work for me and I don’t know why:
function my_custom_filename($filename, $element, $form)
{
// Some transformations of '$filename' here
return sanitize_file_name($filename);
}
add_filter('iphorm_filename_iphorm_4_69', 'my_custom_filename', 10, 3);
As you can see, the field of the upload is 4_69. I tryied also another filter thinking this code could be old: ‘iphorm_filename_quform_4_69’.
I also tryied without any transformation at all, just simply returning $filename unaltered. I know it does not work because I tried to send an email.
But nothing worked for me. Please help!
This topic was modified 2 years, 2 months ago by marianogi.
This topic was modified 2 years, 2 months ago by marianogi.
This topic was modified 2 years, 2 months ago by marianogi.