This topic is locked

Error in Registration page if a file type field is used in the form.

6/2/2018 2:23:16 PM
PHPRunner General questions
fhumanes author

In version PHPrunner 9.8 and using PHP 7.1, when a file-type field is used in the registration page of the form -for the user's photo that is registered-, the generated code is wrong, because when uploading the file in that field the system "demands" that it be identified in the application.
I have solved it by making these changes in the source of the generator:
File: mfhandler.php
line 96:

If ($pageType != PAGE_REGISTER){

if(!isLogged() && $pageType != PAGE_REGISTER || !$havePermission)

{

HeaderRedirect("login", "", "message=expired");

return;

}

}


The first and last line are the added ones.
Is there another better solution?