Added upload and download logic. Need to add server reaction.