07-23-2023, 11:01 AM
I try to Upload a File into a Website with cURL on Windows CMD. The html-code looks like this:
<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>
The command i am using is:
curl -F "filename=@/Users/Me/FILE.so"
The fail-message is:
Warning: setting file FILE.so failed!
curl: (26) read function returned funny value
What am I doing wrong?
<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>
The command i am using is:
curl -F "filename=@/Users/Me/FILE.so"
[To see links please register here]
The fail-message is:
Warning: setting file FILE.so failed!
curl: (26) read function returned funny value
What am I doing wrong?