Hi, guys. I have some problems. I have an html code:
<html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> </head> <body> <form enctype="multipart/form-data" action="upload_check.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="30000"> <input type="file" min="0" max="100" name="userfile[]" multiple="true" /><br /> <input type="submit" value="Post"> </form> </body> </html>
So to check if I received some files:
echo $_FILES['userfile']['size'][0]; echo $_FILES['userfile']['type'][0]; echo $_FILES['userfile']['size'][1]; echo $_FILES['userfile']['type'][1]; echo $_FILES['userfile']['size'][2]; echo $_FILES['userfile']['type'][2]; echo $_FILES['userfile']['size'][3]; echo $_FILES['userfile']['type'][3];
It's just for example. And what I see? I chose these first file(I attached) and the size was 0.
But! When I chose the second file, it printed: 1005image/gif
I don't see the difference betweet them. *.pdf files it doesn't want to receive too. But I took the system image with extension - .png one more time and PHP-script printed NOT 0 size.
So I decided that it's because of Apache settings. I changed the upload_file_size from 2Mb(it's too much for pictures anyway) to 20Mb.
It didn't help.
So I'm asking you for help!
Thanks!