Moved to use callback in file uplaod