Follow these step by step methods to upload your file and get link of that file
a) Go to www.onedrive.live.com and Login with your Microsoft account.
b) Upload your file into your One Drive Window.
c) After upload process completion write click on that file and click Share and again click Get a link.
d) Select View Only in Choose an option section and click on create link button.
e) Now you can simply copy that link to share or get a more short link by clicking Shorten link.