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

转载于:https://www.cnblogs.com/wang715100018066/p/9953155.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值