FileUpload and ServerSide processing incompatible?

FileUpload and ServerSide processing incompatible?

marcobamarcoba Posts: 8Questions: 1Answers: 0
edited January 2018 in Free community support

hello i was just trying to use editor, on tip from a friend, but i think that i found a critical bug:
https://editor.datatables.net/examples/advanced/upload.html

if you use the file upload feature in combination with server side processing Datatables PHP Server API will still continue to give in the reply json the full list of the "files" table that, and does not limit on the record shown, looking at the future when having like 1000+ rows can result in a lot of unuseful transmitted data on each request.

is there a way to limit the file list to the shown records? am i doing something wrong?

This question has an accepted answers - jump to answer

Answers

  • marcobamarcoba Posts: 8Questions: 1Answers: 0

    just found this discussion from 2016,

    https://datatables.net/forums/discussion/37735/files-array#latest

    so nothing changed?

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Currently no, the server-side processing filtering does not interface with the list of files. It would need to get the file ids and then query the database for them. That does seem like a good idea and I've added it to my list. Thanks for bringing that up.

    Regards,
    Allan

  • marcobamarcoba Posts: 8Questions: 1Answers: 0

    ETA for a future fix?

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Planned for Editor 1.8, although we don't know when that will be released yet I'm afraid.

    Allan

This discussion has been closed.