Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Smart-Highschool-Ace/Olio2-Image-Manager

Repository files navigation

Olio2-Image-Manager

use this

  1. POST /image
{  
  "name" : "some_image",  
  "type" : "jpg"
}

and get url

{
    "success": true,
    "code": "OLIO-000",
    "message": "요청이 성공적으로 이루어졌습니다.",
    "data": {
        "url": "some url"
    }
}
  1. PUT /{json.data.url}

with picture

example

fetch(json.uploadURL, {
  method: "PUT",
  body: new Blob([reader.result], {type: file.type})
})

Releases

No releases published

Packages

No packages published