Image Upload: [teknik] Fix file type

This commit is contained in:
Dylan Araps 2016-12-05 19:40:56 +11:00
parent beb4d3a40b
commit da87d54d72
1 changed files with 1 additions and 1 deletions

View File

@ -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//\"}")"
;; ;;