Dropzone.js - $ _FILES is empty

I have a code:

<form id="dvw-psa-enter-form" method="post" action="<?php echo site_url() . '/?upload' ?>" enctype="multipart/form-data">
 <div class="dropzone">
    <div class="fallback">
      <input name="file" type="file" multiple />
    </div>
  </div>
  <input type="submit" name="senden" />
</form>

<script src="<?php echo plugins_url() . '/dvelop-workflow-psa/dropzone.js' ?>"></script>
<script>
jQuery(".dropzone").dropzone({
  url: "<?php echo plugins_url() . '/upload' ?>",
  dictDefaultMessage: "Datei bitte hier ablegen!",
  success: function() {
    jQuery('.success-mark').show();
    jQuery('.error-mark').hide();
  },
  error: function() {
    jQuery('.success-mark').hide();
    jQuery('.error-mark').show();
  }
});
</script>

$ _POST contains some information in my php file, but $ _FILES is empty. Successful start event: a success mark is visible, but the file in the directory and $ _FILES is empty. With the classic version, everything is in order.

Php.ini settings are correct.

Does anyone have an idea?

+1
source share
1 answer

Try a URL with a finite space. When the URL is the path, it automatically redirects / upload /, but the $ _FILES array is empty.

0
source

All Articles