Re: postgresql csv import

From: Date: Tue, 21 Sep 2021 20:54:16 +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-327723@lists.php.net to get a copy of this message
On 21/09/2021 21:22, ourdiaspora wrote:
<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?
No, just a weak start at the concept of security (in this case, to minimise file size acceptanc). Commented out the this hidden type, no change; failure continues.
That hidden input is a hint to browsers to limit the file size of uploads, to 50 bytes. If you don't know what code is doing, read up on it before you add it in, because otherwise it's the very opposite of security. As for the file not uploading, have you done any checking of anything to see why it might not be going up? A few things you could check are: * Available space on the drive/partition/volume where the upload directory resides. * The permissions of your upload directory are set correctly for the operating system it's hosted on * The upload directory is set to a valid path * Are there any security restrictions on your hosting which prevent uploads? -- Ashley Sheridan https://www.ashleysheridan.co.uk

« previous php.general (#327723) next »