I can download an uploaded file to Azure using a direct link, seemed the quickest and easiest way to do it. By no means the safest or the smartest. However, when I link to it in the Href, it ignores all spaces, meaning that if a user uploads a document with a space in the name, It doesn't search properly. How would I modify my code to replace any Spaces with % instead when searching?
Here is my code; The link clicked to download the file;
<a href=@ViewBag.LinkToDownload@item.DocumentId@item.RevisionId@item.Attachment>Download</a>
The controller
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Download(string id)
{
string path = @"https://filestorageideagen.blob.core.windows.net/documentuploader/";
return View(path + id);
}