I have some svg files in a directory on my localhost. I want to access all of them and use them to do some stuff. But I cannot access them.
$.ajax({
url : 'assets/svg/',
success: function(data) { alert("success"); /* do some stuff */ },
error : function() { alert("error"); }
});
I always get "error". If I access only one file e.g. 'assets/svg/arrow.svg', it works. But I want all files in the directory.
Other answers on stackoverflow say that it should work like that (e.g. here), but it doesn't.