Technote Details :: Submitting a form with a file field refreshes the whole page
Issue
I have a form with one or more file fields in an AJAX panel. I have specified the correct redirect after submitting the form (i.e. index.php?PanelName__state=StateName)
When submitting the form, the whole page is refreshed, instead of changing just the AJAX panel that contains the form.
Reason
This happens because forms with a file field must have the enctype attribute set to multipart/form-data.
Solution
There is nothing to change, because this is a technical limitation. The redirect will work fine, even if the whole page is refreshed.