curl:(26)无法打开文件“ / C / Users / sekim / Downloads / Letter to Mama Vincent.pdf”

时间:2019-11-19 02:05:53

标签: curl

我不知道为什么我得到了错误

curl -X POST --user "apikey:<<key>>" --form "file=@/C/Users/sekim/Downloads/Letter to Mama Vincent.pdf" --form "source=en" --form "target=fr" https://gateway.watsonplatform.net/language-translator/api/v3/documents?version=2018-05-01
curl: (26) couldn't open file "/C/Users/sekim/Downloads/Letter to Mama Vincent.pdf"

1 个答案:

答案 0 :(得分:0)

我认为问题在于您格式化对C:驱动器的引用的方式。

尝试一下:

curl -X POST --user "apikey:<<key>>" --form "file=@C:/Users/sekim/Downloads/Letter to Mama Vincent.pdf" --form "source=en" --form "target=fr" https://gateway.watsonplatform.net/language-translator/api/v3/documents?version=2018-05-01

(另外:最好不要在此处发布关于问题的API密钥)

相关问题