Browse Source

Fix for curl png bugs

pull/1/head
Zanthas 3 years ago
parent
commit
a7e57ac9d2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Upload/teknik.sh

+ 1
- 1
Upload/teknik.sh View File

@@ -86,7 +86,7 @@ desktop() {

# This function uploads the $file
upload() {
url=$(curl --silent -F file="@$uploadme" "https://api.teknik.io/v1/Upload")
url=$(curl --silent -F file="@$uploadme;type=image/png" "https://api.teknik.io/v1/Upload")
if [[ "${url}" =~ "error" ]]; then
printf 'error uploading file!\n'
exit 1

Loading…
Cancel
Save