上传异常?

程序在A电脑运行可以正常上传下载文件。

到了B电脑(Server)却不能上传了,提交上传文件时只是刷新一下页面?

不知道是什么问题。。是文件夹的权限问题吗?

本人现纠结中,请路人解之,very xx

部分源码:

string reName = updateTime.ToShortDateString() + "_" + rName + "_" + docType + lastName
string 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();       
                               
犯罪嫌疑人X
浏览 330回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP