check undefined upload function