Hi everyone i am trying to upload a simple image but the HttpPostedFileBase is always remaining null. This is my code i dont know what i am doing wrong.
This is my code
This was driving me crazy too. After hours I realized, that
@Scripts.Render( "~/bundles/jquerymobile")
in _Layout.cshtml was causing the problem. When commented out, the upload worked.
See http://forum.jquery.com/topic/jquery-mobile-seems-to-clobber-ability-to-upload-files-via-forms for details.
Adding
data_ajax="false"attribute to my form solved the problem.