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支持自定义多线程并发上传 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM