我想從使用OpenFileDialog的SharePoint網站中選擇一個文件,格式爲SharePoint URI,類似於Open a web folder (Sharepoint 2007)through openFileDialog。使用OpenFileDialog從Web選擇大文件路徑
當我嘗試選擇一個大於50Mb的文件時,我得到了this error。它看起來像是由於與WebClient \ Parameters \ FileSizeLimitInBytes相關的Windows註冊表設置。但是,我無權更改此設置。
當我使用uri的字符串文字時,我可以使用WebRequest下載文件,但我需要一種導航方式並選擇文件路徑字符串。
是否有從SharePoint庫中選擇文件的替代方法?
private void button_File_Click(object sender, EventArgs e)
{
OpenFileDialog fdb = new OpenFileDialog();
fdb.Filter = "Access DBs Or Zips|*.accdb;*.zip";
fdb.FilterIndex = 1;
fdb.ShowHelp = true;
fdb.InitialDirectory = SharePointPath;
if (fdb.ShowDialog() != DialogResult.Cancel)
textBox_File.Text = fdb.FileName;
fdb = null;
}
錯誤來自哪裏? – SLaks