[問題] firebase storage 回傳的progress

看板Web_Design作者 (aha)時間6年前 (2017/11/25 03:34), 編輯推噓1(103)
留言4則, 4人參與, 6年前最新討論串1/1
想請問firebase 在上傳檔案後 回傳function 的 progress 和 downloadURL 該如何處理比較好? 我用React 寫App. 但不知道該如何處理這兩個回傳的資料 在function 內用setState 會出現error 請問有沒有人能幫忙一下 感謝 https://i.imgur.com/CVv9i9B.jpg
-- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 107.138.6.67 ※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1511552041.A.9B0.html

11/25 09:18, 6年前 , 1F
arrow function
11/25 09:18, 1F

11/25 23:36, 6年前 , 2F
萬年問題,this規則
11/25 23:36, 2F

11/26 01:09, 6年前 , 3F
this.uploadFile = this.uploadFile.bind(this) 嗎
11/26 01:09, 3F

11/26 03:53, 6年前 , 4F
我都用 var me = this
11/26 03:53, 4F
文章代碼(AID): #1Q67Gfcm (Web_Design)