aws.s3的 upload 和putObject有什么区别

相同点:上传或新增一个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支持自定义多线程并发上传 

猜你喜欢

转载自www.cnblogs.com/wang715100018066/p/9953155.html