Implemented upload and download endpoints