title: Dropzone JS not able to upload file
body: <p>I'm using Dropzone JS and from my frontend (localhost:9000), I'm calling a upload.php where I get the images and then upload it on the backend (localhost:80)in a folder.
  <strong>here is my html :</strong></p>
  
  <pre><code> &lt;form action="localhost:80/ProgettoTimelinegit/api/upload.php" class="dropzone" id="my-dropzone" enctype="multipart/form-data"&gt;
  
   &lt;/form&gt;
  </code></pre>
  
  <p><strong>my javascript :</strong></p>
  
  <pre><code>Dropzone.autoDiscover = false;
  $("#my-dropzone").options = { 
      maxFilesize: 4, // MB
      url:"http://localhost:80/ProgettoTimelinegit/api/upload.php",
      addRemoveLinks : true,
      uploadMultiple:true,
      paramName:"file",
      parallelUploads: 2,
      maxFiles: 10,
      autoProcessQueue: true,
      headers: {
          // remove Cache-Control and X-Requested-With
          // to be sent along with the request
          'Cache-Control': null,
          'X-Requested-With': null
      }
  };
  </code></pre>
  
  <p>and upload.php</p>
  
  <pre><code>$ds = DIRECTORY_SEPARATOR;  //1
  $storeFolder = '/xampp/htdocs/images/';   //2
  
  if(!empty($_FILES)) {
      // START // CREATE DESTINATION FOLDER
      define('DESTINATION_FOLDER','../api/upload/');
  
      if (!@file_exists(DESTINATION_FOLDER)) {
          if (!mkdir(DESTINATION_FOLDER, 0777, true)) {
              $errors[] = "Destination folder does not exist or no permissions to see it.";
          }
  
          // END // CREATE DESTINATION FOLDER
          $temp = $_FILES['file[]']['tmp_name'];
          $dir_seperator = "fold/";
  
          //$destination_path = dirname(__FILE__).$dir_seperator.$folder.$dir_seperator;
          $destination_path = DESTINATION_FOLDER.$dir_seperator;
          $target_path = $destination_path.(rand(10000, 99999)."_".$_FILES['file']['name']); 
          move_uploaded_file($temp, $target_path);
      }
  }
  </code></pre>
  
  <p>If I upload the image, in console (for every browser)
  it  </p>
  
  <pre><code>POST localhost:80/ProgettoTimelinegit/api/upload.php net::ERR_UNKNOWN_URL_SCHEME
  </code></pre>
  
  <p><em>What I want to do is to load the image in localhost:80/progettoTimelinegit/api/upload/</em></p>