Web API to upload images made in PHP, using Silex.
Check api.php and FileHelper.php to see how you can do it. Also check the android app client that consumes this API.
You can test your client on 'http://boldijar.esy.es/api.php/
You need to do a POST request to /upload, using form data, where 'image' is the actual file (image).
Response example:
{
"success": true,
"message": "Image successfully uploaded!",
"imagePath": "oQkBWU6Qav.jpg"
}
Your image will be on http://boldijar.esy.es/images/oQkBWU6Qav.jpg .
You can use Postman to test this.