0
我使用此处声明的代码通过webapi http://bartwullems.blogspot.pe/2013/03/web-api-file-upload-set-filename.html
上传文件。我还做了以下api列出我拥有的所有文件:已上传文件但未在服务器上显示
[HttpPost]
[Route("sharepoint/imageBrowser/listFiles")]
[SharePointContextFilter]
public async Task<HttpResponseMessage> Read()
{
string pathImages = HttpContext.Current.Server.MapPath("~/Content/images");
DirectoryInfo d = new DirectoryInfo(pathImages);//Assuming Test is your Folder
FileInfo[] Files = d.GetFiles(); //Getting Text files
List<object> lst = new List<object>();
foreach (FileInfo f in Files)
{
lst.Add(new
{
name = f.Name,
type = "f",
size = f.Length
});
}
return Request.CreateResponse(HttpStatusCode.OK, lst);
}
当调用此API时,会列出上传的所有文件。但是,当我去湛蓝的我没有看到任何人的(Content.png是我手动上传到Azure中的文件)
为什么这些文件,如果他们不出现在蔚蓝上市。
感谢!不知道这个KUDU。这些文件在那里,不知道为什么他们不出现在VS服务器窗口。 – Flezcano