Where did a downloaded file from SharePoint come from? (it's SharePoint path)
-
Where did a downloaded file from SharePoint come from? When a user clicks a link in SharePoint to open a file which has registered extension to start a program it seems to follow this flow -Browser downloads the file to a temporary location -The shell then looks to see what the exaction for the file is -Starts the program with the downloaded file path as the first argument to the starting program. My question is this how can I know where to save this file back into SharePoint? How does Word or Excel capture where in SharePoint the file came from? I would like to put into the program I am working on SharePoint integration. Any help would be appreciated. Thanks!
-
Answer:
It all depends on the application that downloads/opens the documents. First of all, when you click a document link in SharePoint (via the Browser) SharePoint will send the document back with the correct mime type (assuming it is registered and known). Depending on the settings of the Web Application (strict vs permissive file handling) not default known document types (such as pdf) will be downloaded to the browser file cache folder on the local client - from where you then can open it. That is the document is opened from the local drive and have no connection to SharePoint at all. To update that document, you need to upload it to SharePoint once again. If the document is of a known and safe type (once again the Web Application strict vs permissive file handling comes into play here) the client application will be openend. Also for known applications such as the Office suite (Word, Excel, PPT etc) and the new Adobe Acrobat/Reader X the application itself will download the document from SharePoint, using the WebDAV protocol (standard HTTP GET, PUT, POST commands), and therefore maintaining the connection to SharePoint. So saves will be directly to SP using HTTP POST commands. As a side note Office 2010 has something called the Microsoft Office Upload Center, this is a client application that allows Office programs to save the files to disk directly and then the Upload Center asynchronously do the HTTP POST to SharePoint. This is much faster - compare saving 10MB PPT to SharePoint and disk. Also the Upload Center takes advantage of the http://msdn.microsoft.com/en-us/library/dd943623%28v=office.12%29.aspx protocol which enables the Upload Center to only upload the "changed" bits of the documents - but that's another history.
Roland at SharePoint Visit the source
Related Q & A:
- How to use an .aspx form for a workflow step in SharePoint 2010?Best solution by SharePoint
- How to disable a sharepoint 2010 list column through sharepoint designer?Best solution by SharePoint
- How to store documents/images/video on a different server in sharepoint 2010?Best solution by SharePoint
- Where is a good place to have a teenager's birthday party in melbourne, australia?Best solution by Yahoo! Answers
- Where is a safe area to live in Philadelphia around St. Christopher's hospital for children?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.