title: Upload file in Jenkins input step to workspace
body: <p>I would like to use the "input step" of Jenkins to upload a binary file to the current workspace.</p>
  
  <p>However, the code below seems to upload the file to the Jenkins master, not to the workspace of the current job on the slave where the job is running.
  Is there any way to fix that?</p>
  
  <p>Preferably without having to add an executor on the master or clutter the master disk with files.</p>
  
  <pre><code>def inFile = input id: 'file1', message: 'Upload a file', parameters: [file(name: 'data.tmp', description: 'Choose a file')]
  </code></pre>