added success hook for file uploader