title: How can I upload files to Redmine via ActiveResource / REST API?
body: <p>I am trying to batch-upload images to <strong>Redmine</strong> and link them each to a certain wiki pages.</p>
  
  <p>The docs (<a href="http://www.redmine.org/projects/redmine/wiki/Rest_api" rel="nofollow">Rest_api</a>, <a href="http://www.redmine.org/projects/redmine/wiki/Rest_api_with_ruby" rel="nofollow">Using the REST API with Ruby</a>) mention some aspects, but the examples fail in various ways. I also tried to derive ideas from the <a href="https://github.com/edavis10/redmine/tree/2.2-stable/app/models" rel="nofollow">source</a> - without success.</p>
  
  <p><strong>Can anyone provide a short example that shows how to upload and link an image from within Ruby?</strong></p>