Retrieve variable
<p>To move file from folder to another I use this code:</p>

<pre><code>$new_file = new File($file['destination']-&gt;getPath() . File::SEPARATOR . $file['file']-&gt;getName());
</code></pre>

<p>Now, I need to add a unique ID and store a filename in database.
OK for uniqid():</p>

<pre><code>$new_file = new File($file['destination']-&gt;getPath() . File::SEPARATOR . uniqid() . '---' . $file['file']-&gt;getName());
</code></pre>

<p>Result in a filename like this:
514685b08e6db---SL004321_7_03-2013.pdf</p>

<p>Now, how to retrieve filename in a variable to store this on MySQL?</p>
