UpApi

Free-service

Upload Api Service

Free-service

How to use

  • Include file: upapi.uploadimage.js
  • Or include min file: upapi.uploadimage.min.js
  • Step 2: add button upload <input> class="form-control" type="file" value="Chọn hình ảnh" onchange="upload(this)" multiple ><input>
  • Step 3: Add function: var upload = function (ele) { var config = new UpApiImgageConfig(); UpApiImage(ele, config).uploadImage(function(a) { console.log(a); }); }

Option

var config = new UpApiImgageConfig(); config.Config.ImgurAlbumHash = 'your album hash'; config.Config.ImgurClientId = 'your client id';
  • Include file: upapi.uploadimage.js
  • Step 2: add button upload <input> class="form-control" type="file" value="Chọn hình ảnh" onchange="upload(this)" multiple ><input>
  • Step 3: Add function: var upload = function (ele) { var config = new UpApiImgageConfig(); UpApiImage(ele, config).uploadImage(function(a) { console.log(a); }); }
  • Step 3: Add function (Option): Upload, resize and return 3 size var upload = function (ele) { var config = new UpApiImgageConfig(); UpApiImage(ele, config).uploadImageAdvance(function(a) { console.log(a); }); }

Testing

Result:


Advance upload image

Json return:


Result small:


Result medium:


Result Big(Coverted to JPG):


Result Orinal:


Service status

  • ExceedCount: 0
  • xRateLimitClientLimit:
  • xRateLimitClientRemaining:
  • xRateLimitUserLimit:
  • xRateLimitUserRemaining:
  • xRateLimitUserReset: