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