Hello,
I have a form that contain (among other elements) a fileupload element where users can upload a .csv file (optional). Nothing fancy, just a regular upload (no ajax upload), the uploaded files are stored on the local webserver.
Checking the PHP log I see a lot of notices about the fileupload element..what could be the cause? The indicated lines in code seems to ask for attributes of a file that in many case is not uploaded by the user..
line 1636: $fileData = $_FILES[$name]['name'];
line 1681-1685:
$file = array('name' => $_FILES[$name]['name'],
'type' => $_FILES[$name]['type'],
'tmp_name' => $_FILES[$name]['tmp_name'],
'error' => $_FILES[$name]['error'],
'size' => $_FILES[$name]['size']);
I have a form that contain (among other elements) a fileupload element where users can upload a .csv file (optional). Nothing fancy, just a regular upload (no ajax upload), the uploaded files are stored on the local webserver.
Checking the PHP log I see a lot of notices about the fileupload element..what could be the cause? The indicated lines in code seems to ask for attributes of a file that in many case is not uploaded by the user..
line 1636: $fileData = $_FILES[$name]['name'];
line 1681-1685:
$file = array('name' => $_FILES[$name]['name'],
'type' => $_FILES[$name]['type'],
'tmp_name' => $_FILES[$name]['tmp_name'],
'error' => $_FILES[$name]['error'],
'size' => $_FILES[$name]['size']);
Code:
[21-Feb-2020 18:02:46 Europe/Bucharest] PHP Notice: Undefined index: contracts_tool_servicii___importa_pdf_servicii in D:\webserver\Apache24\htdocs\aplicatii\plugins\fabrik_element\fileupload\fileupload.php on line 1636
[21-Feb-2020 18:02:46 Europe/Bucharest] PHP Notice: Undefined index: contracts_tool_servicii___importa_pdf_servicii in D:\webserver\Apache24\htdocs\aplicatii\plugins\fabrik_element\fileupload\fileupload.php on line 1681
[21-Feb-2020 18:02:46 Europe/Bucharest] PHP Notice: Undefined index: contracts_tool_servicii___importa_pdf_servicii in D:\webserver\Apache24\htdocs\aplicatii\plugins\fabrik_element\fileupload\fileupload.php on line 1682
[21-Feb-2020 18:02:46 Europe/Bucharest] PHP Notice: Undefined index: contracts_tool_servicii___importa_pdf_servicii in D:\webserver\Apache24\htdocs\aplicatii\plugins\fabrik_element\fileupload\fileupload.php on line 1683
[21-Feb-2020 18:02:46 Europe/Bucharest] PHP Notice: Undefined index: contracts_tool_servicii___importa_pdf_servicii in D:\webserver\Apache24\htdocs\aplicatii\plugins\fabrik_element\fileupload\fileupload.php on line 1684
[21-Feb-2020 18:02:46 Europe/Bucharest] PHP Notice: Undefined index: contracts_tool_servicii___importa_pdf_servicii in D:\webserver\Apache24\htdocs\aplicatii\plugins\fabrik_element\fileupload\fileupload.php on line 1685