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 0cff8e7c41
commit 034d4a58d5

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")