debug upload function ok