Add the serializeData function. This should fix a bug where the file information are lost after Drag&Drop sorting in contao.