upload rest file