Skip to content

oxaide/image-upload

Repository files navigation

Image upload

Build

Build container:

docker build -t image-upload ./

Run sh command in contaner:

docker run -d -p 3000:3000 image-upload

App will run on localhost:3000. Port can be changed by setting PORT env variable.

Image upload


Endpoint:

POST /

Request Headers:

Accept: application/json

Content-Type: mulipart/form-data

Authorization: Bearer <token>

Response Body:

{
    "data": {
        "image_url": "http://localhost:3000/upload_b92084b74191109.png"
    }
}

http://localhost:3000 could be set manually by changing APP_URL environment variable.

Get uploaded images


Visit http://localhost:3000/upload_b92084b74191109.png and you will see uploaded image.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published