When using Ajax to submit a page, the above exception is thrown, and the final result is found
<form id="newsForm" method="post" enctype="multipart/form-data">
News title:<input name="ntittle"><br>
News summary:<input name="nsummary"><br>
News content:<input name="ncontent"><br>
News by:<input name="nauthor"><br>
Post Time:<input name="ndate" ><br>
Image:<input type="file" name="newpic"><br>
News topics:<select name="newsType.ntypeId">
<option value="-1">Please select news topic</option>
</select><br>
<input type="hidden" name="nid"><br>
<input type="hidden" name="npic"><br>
<input type="submit" value="ADD">
</form>
AJAX is used, so the submission is not a direct submission, so you should use button and serialize the form.
<input type="button" value="ADD">
Read More:
- Swagger-ui.html Open Error: There was an unexpected error (type=Not Found, status=404)
- Springboot Error: There was an unexpected error (type = internal server error, status = 500)
- [GO]Solve request origin not allowed by Upgrader.CheckOrigin websocket cross-domain
- [Solved] HTTP Error 405.0-Method Not Allowed occurs in the Put operation of the REST service on IIS7.5
- [Solved] FileUploadException: the request was rejected because no multipart boundary was found
- [Solved] The method getContextPath() from the type HttpServletRequest refers to the missing type String
- The method println(boolean) in the type PrintStream is not applicable for the arguments (void) Error
- [Solved] JSON parse error: Unexpected character (‘‘‘ (code 39)): was expecting double-quote to start ……
- Current request is not a multipart request [How to Solve]
- [Solved] ERROR_POLICY: attempt to perform an operation not allowed by the security policy `PDF‘ @ error/const
- laravel Error mews/captcha is locked to version 3.2.4 and an update of this package was not requested.
- Fetch Error: Failed to execute ‘fetch’ on ‘Window’: Request with GET/HEAD method cannot have body
- [Solved] TypeError: super(type, obj): obj must be an instance or subtype of type
- blackduck Error: Request failed authorization [HTTP Error]: XXX, response was 403 Forbidden.
- The request was rejected because the URL contained a potentially malicious String “;” [How to Solve]
- POI Export Excel Error: HTTP Status 500 – Request processing failed; nested exception is java.lang.NullPointerException
- [Solved] the request was rejected because its size (11579386) exceeds the configured maximum (10485760)
- [Solved] JSON parse error: Unexpected character (‘‘‘ (code 39)): was expecting double-quote to star
- How to Solve TypeError: type numpy.ndarray doesn’t define __round__ method
- [Solved] A needed class was not found. This could be due to an error in your runpath. Missing class: scala/co