I have a folder with several pdf files and I needed to select the pdf 1348.pdf, but via javascript, is it possible to do this? Should I use a handler? and how would I return this value (binary, name and size)?
~ / files / 1348.pdf
In a server method it would look like this:
DirectoryInfo diretorio = new DirectoryInfo(Server.MapPath("~/arquivos/"));
FileInfo[] arquivos = diretorio.GetFiles("1348.pdf");
I wanted to know how to do this via javascript