How can I retrieve a uploaded file's direct URL? - url

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.

Try:
System.Diagnostics.Process.Start("Your SharePoint Site here" +"/"+ "ServerRelativeUrl");

Related

force "save file" on download URL

I have a template file saved in my Microsoft SharePoint document library, I am using a promoted link tile (linking directly to the file in the SharePoint) to make it easier for users to download it.
Problem is, I don't want people to open the file directly, but to force them to save the file first. Is there any way to do so just by adding something in the URL ?
In HTML5, most browsers you can add a 'download' attribute to the a element.
for example:
Download
Refer: How can I create download link in html?
Yes, there it. Add "/_layouts/download.aspx?SourceURL=" after the site name.
If the direct URL is sp.contoso.com/SharedDocuments/myfile.docx, then the download URL is sp.contoso.com/_layouts/download.aspx?SourceURL=/SharedDocuments/myfile.docx

Extract download link with title from youtube and download the file where title will be filename

I'm trying to extract download link from Youtube on last 5 days. But i couldn't figure it out how i will do that. I can extract download link that doesn't contain title. I'm just really curious on this.
My current downloadable link generated from youtube is
https://r2---sn-ax8xaj5ggpxg-q5je.googlevideo.com/videoplayback?mn=sn-ax8xaj5ggpxg-q5je&mm=31&id=o-ACiUieBRsJ--NcxCa2zCMTtnpMI8ZkRwTLmpHCweubMJ&ip=103.250.70.10&pl=24&mv=m&mt=1494041360&ms=au&ei=dkMNWd7cO4TwogOmqZWQCg&ipbits=0&initcwndbps=2500000&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&key=yt6&signature=C9FA79159588A31353C1371B51436FCA541A12B4.92A6D2677D783590172C450FF9414CE94FDE91E8&requiressl=yes&dur=306.108&source=youtube&lmt=1493728113446868&ratebypass=yes&expire=1494063063&upn=zW5TLf4jMEQ&itag=22
How i can generate download link that contain title from youtube? maybe like this:
http://r4---sn-4g5e6ney.googlevideo.com/videoplayback?dur=306.108&mm=31&source=youtube&mn=sn-4g5e6ney&ratebypass=yes&ipbits=0&mime=video%2Fmp4&ip=179.61.131.48&key=yt6&mt=1494038918&expire=1494060709&lmt=1493728113446868&itag=22&ei=RToNWcH5KYfYW_eAlZgO&id=o-AKoT7SFnd_dAgp_Bl-z6rF0dGUTagW48YwWJhn_3gUeD&ms=au&sparams=dur%2Cei%2Cid%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Csource%2Cupn%2Cexpire&upn=fuRSNuDTrCs&pl=22&mv=u&signature=585E3440CE4432A81D490415975009B7047F80.40DE0A8919FA78EF130E17CD74BB96EC711BA570&title=Thodi+Der+-+Lyrical++-+Half+Girlfriend+-+Arjun+K+%26+Shraddha+K+-Farhan+Saeed+%26+Shreya+Ghoshal+-Kumaar
One more thing is i want that link to be downloaded when someone click on the generated link. I saw out there peoples are doing this how they are doing i don't know. If you then please help me in this case i just really need your help, Thank you.

Open a excel file in Microsoft Excel Online from a link

I have a shared xls file in One Drive. Which i want to view though Excel Online.
The Link would be sent to users through mails. The user will open it in browser by clicking it.
Just like the Google Docs Viewer
https://docs.google.com/viewer?url=http://spreadsheetpage.com/downloads/xl/time%2520sheet.xls
But, in Microsoft Excel Online and the file is in One Drive itself.
Thanks in advance.
Use WL.api to provide the path of the file stored on onedrive. This function returns a URL if it succeeds. You have to send this link through email. User will be able to view the invoice stored on your onedrive by clicking on this link using excel online.
:-)

UIWebView open url from file

I am making an app on iphone and I have got stucked at one point. I want to read a text file which has some list of URLs and then I need to read that file and open those URLs one by one in UIWebVIew. Can anyone suggest me how can I do that?? with some sample example.
Thanks in advance.
Check out NSDataDetector, you can find links by dataDetectorWithTypes:error: using NSTextCheckingTypeLink. More documentation: https://developer.apple.com/library/ios/DOCUMENTATION/AppKit/Reference/NSTextCheckingResult_Class/Reference/Reference.html

Attachments with article in joomla 1.6

I'm using joomla 1.6 to develop a website also i'm beginner to joomla. I need to attach one or more pdf files with the article. Any one can please help me to attach file with article and how to get this attachment in frontend. Please help any one how to do that. I tried with phoco download and attachments plugin. But i don't
One way to do this is to log into administration and edit your article in Content Items Manager. With the editor you can insert a link. When you do, click on Shared Documents and then upload the pdf you want to attach.
In your article, you need to use your insert/edit link, in the Link URL section enter the full link of where the pdf is found e.g. www.yourdomainname/images/myfile.pdf. It is always advised to open the pdf in a new window so you can set that in the insert/edit link. Hope this helps.

Resources