When i upload image it gives me following error:
rename(): Cannot rename a file across wrapper types
The problem is in your
$sourcePath... If I'm not mistaken, your
http://, try removing that and replace it with a local path instead.
For example, if you're current
Replace it with: