Commit da87d54d authored by Dylan Araps's avatar Dylan Araps

Image Upload: [teknik] Fix file type

parent beb4d3a4
...@@ -2347,7 +2347,7 @@ scrot_upload() { ...@@ -2347,7 +2347,7 @@ scrot_upload() {
case "$image_host" in case "$image_host" in
"teknik") "teknik")
image_url="$(curl -sf -F file="@${image_file}" "https://api.teknik.io/v1/Upload")" image_url="$(curl -sf -F file="@${image_file};type=image/png" "https://api.teknik.io/v1/Upload")"
image_url="$(awk -F 'url:|,' '{printf $2}' <<< "${image_url//\"}")" image_url="$(awk -F 'url:|,' '{printf $2}' <<< "${image_url//\"}")"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment