Implementation of my file uploader with callbacks