Add curl options: -S and -f

-S = show error, very useful with -s
-f = fail on error
This commit is contained in:
dacav 2025-04-22 23:31:56 +02:00 committed by Ritchie Cunningham
parent 7a776bcf7f
commit 669f5f92f3

2
imgbb
View File

@ -282,7 +282,7 @@ else
fi
# Build curl options.
curl_opts=(-s -L -X POST)
curl_opts=(-s -S -f -L -X POST)
curl_opts+=(--form "key=$api_key")
curl_opts+=(--form "image=@$TMP_IMG")