title: Ajax file upload script fails in Safari-Mac
body: <p>I have a page that allows a user to upload 2 files using AJAX with the help of jquery.form.js plugin.</p>
  
  <p>This process works well on any other browser, but fails when you try to upload the 2nd file on Safari/Mac only, behind SSL. 
  The same page on a qa env that is not using SSL works well in Safari!</p>
  
  <p>Looking at the browser logs for the service that is supposed to upload the file I get a 500 Internal Server Error for that attempt.</p>
  
  <p>When debugging on the server we found out that the error is in the apache multipart request parser.  It seems to be having trouble finding the image file part.  </p>
  
  <p>I couldn't find any information about similar issues and would greatly appreciate advice.</p>
  
  <p>Thanks!</p>
  
  <pre><code>&lt;form id="fileupload-before" method="post" name="fileupload-before" action="/registration/RegImage.do" enctype="multipart/form-data"&gt;
  &lt;div id="beforeimageBtn" class="bt_uploadPhoto_holder" replace="bt_uploadPhoto_holder"&gt;
  &lt;input type="file" name="before" id="fileupload-before-field" onchange='getFilenamebefore();'&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  
  &lt;form id="fileupload-after" method="post" name="fileupload-after" action="/registration/RegImage.do" enctype="multipart/form-data"&gt;
  &lt;div class="bt_uploadPhoto_holder" id="afterimageBtn" replace="bt_uploadPhoto_holder" &gt;
      &lt;input type="file" name="after" id="fileupload-after-field" onchange='getFilenameafter();'&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>(the FILE input fields are hidden (opacity:0) and are served by a button.)</p>