diff --git a/web/jsFile/upload_action.js b/web/jsFile/upload_action.js
index c756a06..866ac3a 100644
--- a/web/jsFile/upload_action.js
+++ b/web/jsFile/upload_action.js
@@ -6,17 +6,18 @@ $(document).ready(function () {
function sendFile() {
var fileData =new FormData();
var Url4='student-upload-finished-product';
- var file=$('.true-select').files;
+ var file=$('#select')[0].files[0];
if($('.true-select').val()=='')
{
alert("请选择文件");
return;
}
+ alert(file);
fileData.append("file",file);
$.ajax({
type:"post",
url:Url4,
- date:fileData,
+ data:fileData,
processData:false,
contentType:false,
success:function (data,status) {
diff --git a/web/upload_file.jsp b/web/upload_file.jsp
index 3047a1e..e91e272 100644
--- a/web/upload_file.jsp
+++ b/web/upload_file.jsp
@@ -23,9 +23,11 @@
-
+
+
+ 选择文件
- 上传文件
上传文件
+