Upload many doesn't work in Editor.NET 1.7.4 sample.

Upload many doesn't work in Editor.NET 1.7.4 sample.

szxszx Posts: 11Questions: 4Answers: 0
edited August 2018 in DataTables

I tried 'upload many' sample in Editor.NET 1.7.4 solution with sql server,
and found that 'd' (upload-many.html, line 71) returns undifined.

Google Chrome error is 'Uncaught TypeError: Cannot read property 'length' of undefined'.

How can I fix this?
All the other functions work very fine.

This question has an accepted answers - jump to answer

Answers

  • szxszx Posts: 11Questions: 4Answers: 0

    Fixed by modifying upload-many.html, line 71-75:

    render: function ( d ) {
        return d ?
            d.length+' image(s)' :
            'No image';
    },
    

    Original file was:

    render: function ( d ) {
        return d.length ?
            d.length+' image(s)' :
            'No image';
    },
    

    d.length does not return boolean.

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    Answer ✓

    That's interesting - thanks for letting me know about that!

    Allan

This discussion has been closed.