On 21/09/2021 20:34, ourdiaspora wrote:
$filename=$_FILES["userfile"]["tmp_name"];
That one line is not working as expected, which means that the rest of your code will fail.
Html form extract:
<form enctype="multipart/form-data" action="...php" method='post'>
<input type="hidden" name="MAX_FILE_SIZE" value="50" />
Do you know what this hidden input is doing exactly?
<p>
Select file on your computer: <input name="userfile" type="file" />
<input type="submit" name='datacsvimport' value=" data file" />
</p>
</form>
--
Ashley Sheridan
https://www.ashleysheridan.co.uk