"Read Function Returned Funny Value" on cURLUpload

I am trying to use the upload plugin to upload a file, this time with cURL.

This is my curl command.

curl -X POST http://<ip address>:1337/api/products -H 'content-type: multipart/form-data;' -F 'file=@/direct/path/to/resource/filename.stl'

I get the error.

Warning: setting file
Warning: /path/to/file/filename.stl
Warning: failed!
curl(26) read function returned funny value

Thank you for your help explaining this.

System Information
  • Strapi Version: 4.0.0
  • Operating System: Ubuntu 20.04.3 LTS
  • Database: PG 13.4
  • Node Version: v12.22.7
  • NPM Version: 6.14.15
  • Yarn Version: 1.22.17

The 26 error was caused by placing the @ symbol at the beginning of the URI instead of in front of the filename.

can you briefly explain it?