Remove space and special character - Dropzone
<p>How can I do to remove the spaces and special characters after completing the UPLOAD?</p>

<pre><code>$ds          = DIRECTORY_SEPARATOR;  //1     
$storeFolder = 'arquivos';           //2

if (!empty($_FILES)) {
    $tempFile   = $_FILES['file']['tmp_name'];
    $targetPath = dirname( __FILE__ ) . $ds. $storeFolder . $ds;  //4
    $targetFile = $targetPath. $_FILES['file']['name'];           //5
    move_uploaded_file($tempFile,$targetFile);                    //6
}
</code></pre>