Please change the following line of code:
$target = $currentdir . "/upload/";
to:
$target = $currentdir . "/upload";
I was having a similar problem and was able to solve using this...
Type: Posts; User: mydebug; Keyword(s):
Please change the following line of code:
$target = $currentdir . "/upload/";
to:
$target = $currentdir . "/upload";
I was having a similar problem and was able to solve using this...