I try to use [dropzone.js](http://www.dropzonejs.com/) to make a drag-and-drop file upload area and I'm getting really desperate here. I have this simplest script:

```
<?php
  print_r($_FILES);
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
        <meta charset="utf-8">
    </head>
    <body>
        <form action="/" method="POST" enctype="multipart/form-data" class="dropzone">
            <input name="file" type="file" />
            <input type="submit" name="submit" value="Submit" />
        </form>
        <script type='text/javascript' src="dropzone.js"></script>
    </body>
</html>

```

When I manually select the file using the file input button, I get this result:

```
Array ( [file] => Array ( [name] => test.txt [type] => text/plain [tmp_name] => C:\wamp\tmp\php4DFF.tmp [error] => 0 [size] => 247 ) )

```

However, when I use dropzone drag-and-drop, the file appears as uploaded, but after submitting I get this:

```
Array ( [file] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) )

```

Also known as **UPLOAD\_ERR\_NO\_FILE** *Value: 4; No file was uploaded.*

Am I missing something here?

I tried to play with settings like *autoProcessQueue: false*, *autoDiscover: false*, automatic form submission, different scripts, different servers (apache/nginx), but absolutely nothing seems to work for me. There got to be some stupid thing that I'm just overseeing right now.

I use dropzone.js v4.0.1 but I tried older versions as well.