File upload using rest