1. 程式人生 > >aws.s3的 upload 和putObject有什麼區別

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支援自定義多執行緒併發上傳