title: sending file to restful web service using features native to oracle apex 4.x
body: <p>I'm trying to use the standard apex web service form to submit a file. Everything works (I authenticate and access method fine) however the web service finds the file to be 'empty' (non existent I think it means). Anyone got any ideas or even ideas for how I could diagnose this?</p>
  
  <p>I can submit a html form which the web service understands. Unfortunately I don't really want the browser to redirect to the web service and return XML to the user. Maybe I could do something with ajax but it sees better to use the built in apex functionality if possible.</p>
  
  <p>If anyone is interested I'm trying to upload an image to as described here: <a href="http://developers.box.net/w/page/12923951/ApiFunction_Upload%20and%20Download" rel="nofollow noreferrer">http://developers.box.net/w/page/12923951/ApiFunction_Upload%20and%20Download</a> It looks simple but I must be missing something to do with using web services with apex!</p>
  
  <p>That is the web service in this screenshot doesn't work:</p>
  
  <p><img src="https://i.stack.imgur.com/u8FZN.png" alt="enter image description here"></p>
  
  <p>however the form:</p>
  
  <pre><code>&lt;/form&gt;&lt;form action="http://upload.box.net/api/1.0/upload/ao6kfxdc92g9vq3xqzso"
  enctype="multipart/form-data" method="POST"&gt;
  &lt;input type="file" name="new_file1" /&gt;
  &lt;input type="submit" name="upload_files" value="Upload File" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>does work.  Does any one have any ideas why this doesn't work, or even how to get more information on whats going on?</p>
  
  <p>(I've changed the authentication key in this example.) </p>