0

Hellu

Everything is in the title. The user of my program can upload files to a SharePoint server, how can I provide him a link to open this file? Meaning, how can I get the URL to put in the link?

Thanks in advance.

Edit: Just to clarify, the File item I get after the upload only contains a ServerRelativeUrl propertie, which won't work for subsites.

Kilazur
  • 3,089
  • 1
  • 22
  • 48
  • How are you uploading the file? Please show some code – Tatjana N. Apr 28 '14 at 17:39
  • I don't think this will be relevant, as the upload uses numerous different functions in order to create a folder, import metadatas... I just get in the end my File object corresponding to the uploaded document, and I wanted to know if there was a way to get its URL. I have another bug so I couldn't try what I found: using the field EncodedAbsUrl. – Kilazur Apr 29 '14 at 07:50

1 Answers1

-1

Try:

System.Diagnostics.Process.Start("Your SharePoint Site here" +"/"+ "ServerRelativeUrl");
Tony Wu
  • 1,040
  • 18
  • 28