how tao have more then one user upload image with code below

28 Views Asked by At

this code is limiting me from having more the one user upload an image

$ausgabe = '';
if (isset($_POST['submit']) && $_POST['submit']=="Senden") {
    $ausgabe .= 'Upload compelte:<br>';
    if (isset($_FILES['thefile']['tmp_name'])  && strpos($_FILES['thefile']['type'], 'image') !== false) {
        $size=getimagesize($_FILES['thefile']['tmp_name']);
        if ($size[2] == 1
        || $size[2] == 2
        || $size[2] == 3
        || $size[2] == 4) {
                
1

There are 1 best solutions below

0
Spiro Kyvrikoseos On

I realized that the problem was caused by a mistake I did.

The issue ended up being in the <form> where name="max_file_size... needed to be replaced as name="file_size...