fixed bug where API uploads wouldn't work

This commit is contained in:
Christian Haschek
2015-11-02 22:20:39 +01:00
parent 7e0a77cb3c
commit a5280eeedc

View File

@@ -29,7 +29,7 @@ if($_REQUEST['getimage'])
echo json_encode($pm->uploadImageFromURL($url));
}
if($_FILES['postimage'])
else if($_FILES['postimage'])
{
$image = $_FILES['postimage'];
echo json_encode($pm->processSingleUpload($file,'postimage'));