anve-upload-upyun
上传又拍云npm包 https://github.com/shihao905/upload-upyun.git
install
$ npm install --save anve-upload-upyun
use
const UpyunUpload = ;const path = ; /** * 上传的服务名 */ serviceName: '********' /** * 操作员账号 */ operatorName: '********' /** * 操作员密码 */ password: '******' /** * 上传服务器路径 */ remoteFilePath: '/test' /** * 本地文件夹路径 */ filePath: path /** * 是否打开上传前的提示 默认打开 */ openConfirm: false /** * 上传成功回调 * @param */ { console } /** * 上传失败回调 * @param */ { console };