jQuery - Why ajaxSubmit returns different format of data even both forms include FILE
<p>I have designed two forms both of which use ajaxSubmit to submit the form.
Also two forms include </p>

<pre><code>&lt;input type='file' name='filename' size='10' /&gt;
</code></pre>

<p>However, the return result from two forms are different:</p>

<p>The function procProfFormSuccess(responseText, statusText, XMLHttpRequest)</p>

<pre><code>First form responseText: {"success":true,"msg":"Your profile has been successfully updated!"}

Second form responseText: &lt;head&gt;&lt;/head&gt;&lt;body&gt;{"success":true,"msg":"Your profile has been successfully updated!"}&lt;/body&gt;
</code></pre>

<p>I cannot figure out why. Based on my understanding, the return results should always be like the second form if the form includes a FILE component.</p>

<p>Please correct me if I am wrong here.</p>

<p>Thank you</p>
