Update TbFileUpload.php

Add callbacks based on work by Szymon Dudziak.