How can I get rid of the brackets below for json processing?
[{\"success\":true,\"filename\":\"bialding_and_rebialding_plymouth02.jpg\"},{\"success\":true,\"file
You can pull out the json and return just that by doing the following inside your function:
return $message[0]; // only json
or you can return it all and remove it afterwards:
$uploader = new uploader();
$result1 = $uploader->handle_upload('uploads/');
$result2 = $result[0];
str_replace(array('[', ']'), '', htmlspecialchars(json_encode($result), ENT_NOQUOTES));
?