Script to upload doc.