I am using the JQuery Form Plugin on a form that is shown in a modal
window (nyroModal) to upload files. It is working like a charm as long
as the file is a reasonable size. However, if a user tries to upload a
large file (say 100MB or more), when response comes back (HTML
response), it re-loads the entire window, instead of re-writing the
contents of a div in the modal window, like it is supposed to do.
Does anyone have any idea as to what is going on? Seems like it may be
a timeout issue, but I am not sure why it is happening or at which
point it is timing out.
Here is a snippet of the code. Nothing special going on.
"checkCmlUpdateForm" is not shown, but it is a simple data validation
function.
jQuery(document).ready(function() {
var options = {
target: '#cmlCreateUpdate_formContainer',
iframe: true,
beforeSubmit: checkCmlUpdateForm,
success: handleResponse
};
// bind form using 'ajaxForm'
jQuery('#supportingDocs').MultiFile();
jQuery('#cmlCreateUpdate_form').ajaxForm(options);
jQuery('#cmlUpdate_cancelBtnBottom').bind('click',cancelUpdate);
jQuery("textarea[name='description']").maxlength({maxCharacters:
4000, statusText: "characters left", notificationClass: "bg_alert"});
});
function handleResponse(responseText, statusText) {
// Re-run the search to update the results.
if(jQuery("#cmlSearch_form").length > 0){
doSearch('<portlet:renderURL windowState="RAW"/>');
}
}