html5 - Submit form as "multipart/form-data" but content-type is “application/x-www-form-urlencoded” on the server -
html5 - Submit form as "multipart/form-data" but content-type is “application/x-www-form-urlencoded” on the server -
i'm trying submit form includes file, i'm using enctype="multipart/form-data" request content-type sent “application/x-www-form-urlencoded”, part of code:
<div id="uploadtest" data-role="page" align="right"> <form id="uploadtestform" action="/upload" method="post" enctype="multipart/form-data"> <input type="text" name="text" autofocus required> <input id="imagefile" type="file" data-clear-btn="false" name="image" accept="image/*" capture> <button type="submit" data-theme="a">upload</button> </form> </div>
this part of html5 application need upload file. there no js code run on submitting form.
may please help me find why cannot submit form "multipart/form-data"?
i able find out problem.
i added data-ajax="false" form , working.
html5 forms form-submit multipartform-data
Comments
Post a Comment