Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 405 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 405 Bytes

IMGBB Upload via PowerShell

PowerShell script to automate upload to IMGBB.com

https://api.imgbb.com/

Basic single item example:

$image_file = "c:\temp\img.png"
$apikey = 'xxxxxxxxxxxxxx'
####
$image = Get-Item $image_file
$uri = 'https://api.imgbb.com/1/upload?key=' + $apikey
$Form = @{
	image = $image
}
$response = Invoke-RestMethod -Method Post -Form $Form -Uri $uri
$response.data.url