title: How to upload file from command line as file parameter in jenkins
body: <p>I am triggering builds with string parameters from the command line in Jenkins with:</p>
  
  <pre><code>curl http://jenkins:8080/job/Build/buildWithParameters?PARAM=value&amp;token=token
  </code></pre>
  
  <p>I now want to trigger a build with a file as a file parameter from the command line.</p>
  
  <p>For example if my project builds main.c then I would like to be able to trigger a build and upload my main.c from the command line.</p>
  
  <p>Is this possible?</p>