web debugging in single file or multiple files are properly can receive files
another I upload using uniapp uni. UploadFile () to upload the file, not an error, but the file with the Request. The Files are getting less than
Request. The Files didn't get to the file
but the data stream is a file
will flow data to print to the console
o
CodePudding user response:
uni - app uni. UploadFile upload pictures front and back side (Java),CodePudding user response:
Form form to uploadCodePudding user response:
var formObj=new FormData (form);
//create the XHR object
Var XHR=new XMLHttpRequest ();
//set and the way to upload url
XHR. Open (' post 'document. Location. Origin +'/home/up ');
XHR. SetRequestHeader (" the content-type ", "multipart/form - the data");
XHR. Upload. Onprogress=function (e) {
The console. The log (e.l oaded);
The console. The log (e. otal)
}
//send the request, send formatted form form as the main body
XHR. Send (formObj);
XHR uploaded by Request. The Files are getting less than file