How to obtain all the name of pdf into upload folder
Hi everyone,
in my project I need to load a lot of file.
I'm searching for a procedure able to:
- read the name in 'app/resources/Uploaded/' + documentName + '.pdf'
- save documentName into a json file
In such way i could be able to launch the visualization of the file into 2d canvas, with a function like this one bind to a button that pass the parameter 'documentName':
$scope.showDocumentation = function(documentName){
var anchor = document.createElement('a');
anchor.href = 'app/resources/Uploaded/'+documentName+'.pdf';
window.location.href = anchor.href;
};
With the json file I want to load the file without typing every single name with my fingers.
Any suggestions?

