Skip to content

boldijar/upload-image-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

upload-image-backend

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.

img1

About

Web API to upload images made in PHP, using Silex.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published