• #dev 2019-09-11
  • Prev
    Next
  • #indieweb
  • #dev
  • #wordpress
  • #meta
  • #stream
  • #microformats
  • #known
  • #events
#dev ≡
  • ←
  • →
2019-09-11 UTC
# 19:11
vika_nezrimaya
Trying to do some JS development lately, and I've got a dumb question. Hope you won't be angry since I'm a JS noob! I wanna use fetch() to upload data to the Media Endpoint and receive the URLs from Location header. I'm doing input.files.forEach(file => fetch(<...>).then(urls.push(<...>))), but how can I wait for all uploads to finish? :3