fix bug, set procedure when upload