Home > Back-end >  Java development - Bimface - recently uploaded images
Java development - Bimface - recently uploaded images

Time:11-03

Beg of bigwigs doubt!!!!!!!!!! Don't know how to grab and upload pictures flow
I want to upload pictures after the implementation notation function, normal upload process is: select pictures - & gt; Click on the upload - & gt; Success,
To realize the function: after the completion of the notation - & gt; Call to upload code - & gt; Success,
Remark after the completion of the document. The body. The appendChild (image); Click save images can be generated in the current page

The following code is the error code, the code is available, online and Tomcat, but normal choose image upload error,

Error:
02 November, 2020 3:11:59 afternoon org. Apache. Catalina. Core. StandardWrapperValve invoke
Serious: Servlet service () for the Servlet [uploadTestServlet] in context with the path [/bim] threw the exception [. Org. Apache tomcat. Util. HTTP. Fileupload. Impl. InvalidContentTypeException: the request doesn 't contain a multipart/form - data or multipart/mixed stream, the content type, the header is text/plain; charset=utf-8] with root cause
Org, apache tomcat. Util. HTTP. Fileupload. Impl. InvalidContentTypeException: the request doesn 't contain a multipart/form - data or multipart/mixed stream, the content type, the header is text/plain; Charset=utf-8
At org, apache tomcat. Util. HTTP. Fileupload. Impl. FileItemIteratorImpl. Init (FileItemIteratorImpl. Java: 139)
Here is normal can upload some code, can be used,


Problem: how to use ajax in the front will document. The body. The appendChild (image) generated by the image to the back-end
bosses!!!!!! Seek to reassure
  • Related