mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-16 13:08:01 +00:00
fixed bug where API uploads wouldn't work
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user