程序在A電腦運行可以正常上傳下載文件。
到了B電腦(Server)卻不能上傳了,提交上傳文件時只是刷新一下頁面?
不知道是什么問題。。是文件夾的權(quán)限問題嗎?
本人現(xiàn)糾結(jié)中,請路人解之,very xx
部分源碼:
string reName = updateTime.ToShortDateString() + "_" + rName + "_" + docType + lastNamestring filePath ="/UPLOADFILES/" + id + "/" + reName;string filePathDir = Server.MapPath("/UPLOADFILES/" + id + "/");if (!File.Exists(filePath))?{??Directory.CreateDirectory(filePathDir);??string upfilePath = Server.MapPath("/UPLOADFILES/" + id + "/") +reName;?myFile.PostedFile.SaveAs(upfilePath);???????????????????????if (!this.InsertDocInfo(jobno, docType, reName, fileSize, updateTime, Remark,type,filePath))??????????{???????? Response.Write("<script>alert('Upload file successfully! File information written to the database failed!')</script>");???????????????this.ClearLog();??????????????????????????????????????
- 1 回答
- 0 關(guān)注
- 342 瀏覽
添加回答
舉報
0/150
提交
取消