Fix frontend file upload

Frontend file upload did not save file in upload folder and did not create an entry in table tl_files