Intento descargar un archivo pdf de mi base de datos sql. Muestro la lista de la base de datos. Mi propósito es obtener un archivo pdf del enlace. Debido al bucle "for", no sé cómo obtener la ruta correcta para descargarlo.
///FRONTEND CODE <tr v-for="not in notatki"> <td>{{not.NotatkaId}}</td> <td>{{not.NotatkaName}}</td> <td>{{not.Przedmiot}}</td> <td>{{not.DateOfJoining}}</td> <td><a href="http://localhost:37924/api/Notatki/{{not.NotatkaFileName}}" download>Download File</a></td> <td> ///API CODE public JsonResult SaveFile() { try { var httpRequest = Request.Form; var postedFile = httpRequest.Files[0]; string filename = postedFile.FileName; var physicalPath = _env.ContentRootPath + "/Notatki/" + filename; using (var stream = new FileStream(physicalPath, FileMode.Create)) { postedFile.CopyTo(stream); } return new JsonResult(filename); }Es enlace con error [1]: https://i.stack.imgur.com/H5fqW.png