I develop a web application that uses DFS to load document to repository. The document content is added by using
dataObject.Contents.Add(New FileContent(Path.GetFullPath(filepath), filetype))
The above Path.GetFullPath(filepath) only works if the web application and the file are in the same computer. Or the file is not found. So I add a middle step at the background to save the file to the server first before call the above line.
The current process is: the user uses upload control to load the file to the server, then the above line of code picks the file from server to repository. It looks as if there should be a direct way to load files to repository without save to web server. But how to achieve this?
Please advice.