使用chunk方法将文件上传到sharepoint [英] upload files to sharepoint using chunks method

查看:92
本文介绍了使用chunk方法将文件上传到sharepoint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在ssis的脚本任务中的每次迭代中上传文件,并且在ctx.executeQuery()内的行中出现错误  if (fileSize< = blockSize)阻止说"URL不是网络相关"。我不知道如何解决它和
有什么问题。我附上以下代码,它可以在Microsoft网站上找到。

I am trying to upload files in every iteration within a script task of ssis and there is an error at the line ctx.executeQuery() within if (fileSize <= blockSize) block that says "URL is not web relative".I am not sure how to fix it and what is wrong.I attach the below code and it is available in the Microsoft site.




推荐答案

您好

根据错误消息,尝试修改下面的行。

According to the error message, try to modify below line.

fileInfo.Url = uniqueFileName;

为文件的Url属性构建相对URL。

Build a relative URL for the file's Url property.


这篇关于使用chunk方法将文件上传到sharepoint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆