File transfer implemented using RxJS