Re: postgresql csv import

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux