rename(): Cannot rename a file across wrapper types
<p>When i upload image it gives me following error:</p>

<blockquote>
  <p>rename(): Cannot rename a file across wrapper types</p>
</blockquote>

<p>here what i have done:</p>

<pre><code>rename($sourcePath, $destinationPath)
</code></pre>

<p>in above variable it contains path of image including image name</p>

<p>can anyone help?</p>

<p>Thank you!</p>