相同點:上傳或新增一個object ;
<template> <div class="page"> <!-- 參考:https://blog.csdn.net/xr510002594/article/details/82972026 --> <div style="width: 102px;height: 102px;border-radius: 50%;border:1px solid #CCC" @click="section()"> <!-- 動態圖片路徑 --> <!-- <img :src="$aws.url + urlData" style="width: 100px;height: 100px;border-radius: 50%;"/> --> <img :src="urlData" style="width: 100px;height: 100px;border-radius: 50%;"/> </div> <input type="file" ref="iconFile" @change="fileChange" name="file" style="display: none"/> </div> </template>
不同點:
upload適用於比較大的文件,putObject適用於小的文件內容,upload支持自定義多線程並發上傳