DEV Community

Ali Abbas
Ali Abbas

Posted on

3 1

Imgur Upload Image Function ⚡

Star Github Repo ⚡

Prerequisites

  • Imgur Client ID

Click here to get your CLIENT ID

The function selects the input["input-image"] and directly uploads it to the Imgur server and in response returns a URL.

SAMPLE RESPONSE

{data: {…}, success: true, status: 200}
data:
id: "BhbW61q"
title: null
description: null
datetime: 1579679274
type: "image/jpeg"
animated: false
width: 581
height: 1032
size: 29937
views: 0
bandwidth: 0
vote: null
favorite: false
nsfw: null
section: null
account_url: null
account_id: 0
is_ad: false
in_most_viral: false
has_sound: false
tags: []
ad_type: 0
ad_url: ""
edited: "0"
in_gallery: false
deletehash: "FQbXad5wfv1kGh3"
name: ""
link: "YOUR IMAGE LINK"
__proto__: Object
success: true
status: 200
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay