Re: postgresql csv import

[email protected] (Ashley Sheridan)
Newsgroups php.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.