Skip to content

Instantly share code, notes, and snippets.

@yumin9822
yumin9822 / img_upload.sh
Last active March 28, 2025 02:00 — forked from floshodan/img_upload.sh
Pixhost Upload Shellscript using API
#/bin/sh
image=$(find -name "*.png")
export image
varCurl=$(curl -b --include "https://api.pixhost.to/images" \
-H 'Content-Type: multipart/form-data; charset=utf-8' \
-H 'Accept: application/json' \
-F "img=@$image" \
-F 'content_type=1' \