- function doUpload() {
- var formData = new FormData($( "#uploadForm" )[0]);
- $.ajax({
- url: ‘http://localhost:8080/cfJAX_RS/rest/file/upload‘ ,
- type: ‘POST‘,
- data: formData,
- async: false,
- cache: false,
- contentType: false,
- processData: false,
- success: function (returndata) {
- alert(returndata);
- },
- error: function (returndata) {
- alert(returndata);
- }
- });
- }
时间: 2024-11-08 21:03:59