add paste upload handler