Change image name after thumbnail creation
<p>i have this code here which outputs me an image..
I need to change it because for the moment it gives me something like : test.jpg, what i need is for it to give me test_s.jpg</p>

<p>Can you please orient me to how to do it?</p>

<p>Thanks!</p>

<pre><code>$tempFile = $_FILES['Filedata']['tmp_name'];
$targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';
$targetPath =  str_replace('//','/',$targetPath);
$targetFile =  $targetPath . $_FILES['Filedata']['name'];
</code></pre>
