adding callback to when file is uploaded