Image Upload: [teknik] Fix file type
This commit is contained in:
parent
beb4d3a40b
commit
da87d54d72
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -2347,7 +2347,7 @@ scrot_upload() {
|
|||
|
||||
case "$image_host" in
|
||||
"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//\"}")"
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue