[WIP] make file upload work again, relates #27781