data image render function
data image render function
Hi everyone,
I’m trying to display data image from database, it does uploads to public folder, but it won’t display.
the code.
{data: 'image',
render: function( data, type, full, meta ) {
return '<img src="/public/img" + filename.image + "" height="50"/>';
}
},
by any chance, can anyone see what I’m missing or help to correct the function?
thanks
This discussion has been closed.
Replies
Its hard to say what the problem is without seeing your current solution and data. I suspect
filename.imageis resulting in an undefined error. Where canfilename.imagebe found in the row data?If you still need help the please post a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Maybe you need to use something like
data.filename.imageor justdata.Kevin