Browse Source

No longer fails when filenames contain a , or ;

From the curl manual: If filename/path contains ',' or ';', it must be quoted by double-quotes...
tags/v2.3
ajimu 2 years ago
parent
commit
77abe7b07d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tekup

+ 1
- 1
tekup View File

@@ -166,7 +166,7 @@ upload_file() {
curl_opts+=( -F 'genDeletionKey=true' )

curl_opts+=( -F "contentType=${mime%%;*}"
-F "file=@${file}"
-F "file=@\"${file}\""
https://api.teknik.io/v1/Upload )
curl "${curl_opts[@]}" | parse_response
}

Loading…
Cancel
Save