add {image,document} upload to pipeline.