return filenames in upload-many

return filenames in upload-many

foo.cheungfoo.cheung Posts: 4Questions: 3Answers: 0
edited January 2016 in Editor

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"
        }

Answers

  • allanallan Posts: 61,824Questions: 1Answers: 10,131 Site admin

    You'd probably need to use file() with a for loop that runs over the d 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

This discussion has been closed.