How to remove space from $_FILES?
<p>I have this code of images pre-upload:</p>

<pre><code>    $tf = $directory . $_FILES['Filedata']['name'][0];
</code></pre>

<p>I would remove any spaces in the parameter ['name']. Can I embed this code or not? I tried it with tim () but I can not.</p>
