Strategy11/formidable-forms

The file does not exist. Importing XML on windows

webswk opened this issue · 0 comments

Found a problem when importing a xml file into Formidable on a windows environment (xampp)

This seems to strip of the backslashes of the tmp file;

/classes/controllers/FrmXMLController.php:99

$file = isset( $_FILES['frm_import_file']['tmp_name'] ) ? wp_unslash( $_FILES['frm_import_file']['tmp_name'] ) : '';

So it becomes C:xampptmpphpC2E2.tmp instead of C:\xampp\tmp\php58AD.tmp