我尝试在 Windows CMD 上使用 cURL 将文件上传到网站。html 代码如下所示:
<form enctype="multipart/form-data" action="/Filebrowser?Path=/S71500/" method="POST" onsubmit="return checkUploadFile()">
<td><input id="filebrowser_upload_filename" type="file" name="filename" size="30" maxlength="80" style="background-color: transparent;"></td>
<td><input type="submit" value="Datei laden"></td>
</form>
Run Code Online (Sandbox Code Playgroud)
我使用的命令是:
curl -F "filename=@/Users/Me/FILE.so" http://localhost:8080
Run Code Online (Sandbox Code Playgroud)
失败消息是:
Warning: setting file FILE.so failed!
curl: (26) read function returned funny value
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?