Re: postgresql csv import
| From: | ourdiaspora | Date: | Tue, 21 Sep 2021 19:34:55 +0000 |
| Subject: | Re: postgresql csv import | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327720@lists.php.net to get a copy of this message | ||
> $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" />
<p>
Select file on your computer: <input name="userfile" type="file" />
<input type="submit" name='datacsvimport' value=" data file"
/>
</p>
</form>