Post ajaxForm from Struts 2 file upload utility not working in IE
<p><strong>Background:</strong>
I am looking for a tool to upload big file asynchronously using Ajax + Struts 2, I was able to do the same thing using servlet but when I modify the logic to call Struts action. I have noticed that when I try to upload a huge file using Struts 2 action, it doesn't get called from jQuery <code>ajaxForm(options);</code></p>
<p>I have used the sample code specified on the below link this works perfectly fine.
<a href="http://www.simplecodestuffs.com/file-upload-with-progress-bar-using-jquery-in-servlet/" rel="nofollow noreferrer">http://www.simplecodestuffs.com/file-upload-with-progress-bar-using-jquery-in-servlet/</a></p>
<p>Can anyone tell if below jQuery function call is correct for upload functionality.</p>
<pre><code>$(&quot;#uploadtest&quot;).ajaxForm(options);  
</code></pre>
<p>I tried but it is not working as expected in one particular browser when huge data is uploaded.
(That is, client ajax call occurs, however, the corresponding Struts 2 action is not getting called in the backend, logs are not generated on the server side).</p>
<p>I am not able to understand why Struts 2 action is not getting called when jQuery <code>ajaxform</code> to upload huge file (multipart upload functionality).</p>
<p><strong>jQuery:</strong></p>
<pre><code>$(&quot;#uploadtest&quot;).ajaxForm(options);
</code></pre>
<p><strong>JSP snippet:</strong></p>
<pre><code>&lt;s:form id=&quot;uploadtest&quot; name=&quot;uploadform&quot; action=&quot;aStrutsAction&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
</code></pre>
<p>Similar question is asked <a href="https://stackoverflow.com/q/15475215/5086633">here</a>.</p>