Uploaded files stuck in /temp folder inside upload folder
-
Hi, we’re using Forminator with the following code in functions.php to ensure that an uploaded file’s name doesn’t have random characters added to it. This was working well until the last update to 1.29.0 a few days ago. Now uploaded files are getting stuck in a /temp folder inside the forminator upload path, and they have the random characters added again. Any idea what might have changed? Thanks in advance for any help you can offer.
add_action( ‘forminator_form_before_handle_submit’, ‘wpmudev_uploaded_filename_fix’, 10, 1 );
add_action( ‘forminator_form_before_save_entry’, ‘wpmudev_uploaded_filename_fix’, 10, 1 );
function wpmudev_uploaded_filename_fix( $form_id ) {
if ( $form_id != 1675 ) { //Please change the form ID
return;
}add_filter('wp_unique_filename', 'wpmudev_modify_uploaded_file_name', 10, 6);}
The topic ‘Uploaded files stuck in /temp folder inside upload folder’ is closed to new replies.