return filenames in upload-many
return filenames in upload-many
foo.cheung
Posts: 4Questions: 3Answers: 0
https://editor.datatables.net/examples/advanced/upload-many.html
How do I change the code below so it returns a url link to each file and not just the number of files ?
Thanks in advance
{
data: "files",
render: function ( d ) {
return d.length ?
d.length+' image(s)' :
'No image';
},
title: "Image"
}
This discussion has been closed.
Answers
You'd probably need to use
file()
with afor
loop that runs over thed
array. Assuming the URL information is stored in the database and you are returning it as part of the data, then it should be available there.Allan