Skip to content

Commit

Permalink
No longer fails when filenames contain a , or ;
Browse files Browse the repository at this point in the history
From the curl manual: If filename/path contains ',' or ';', it must be quoted by double-quotes...
  • Loading branch information
ajimu authored and DanielFGray committed Apr 30, 2017
1 parent 590f44a commit 77abe7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tekup
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 77abe7b

Please sign in to comment.