Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fivetanley/5a852f0fc08428be4eacf2c3dc344205 to your computer and use it in GitHub Desktop.
Save fivetanley/5a852f0fc08428be4eacf2c3dc344205 to your computer and use it in GitHub Desktop.
+----------+
| | error(e)
+------| Error |<-------------------+-------------------------+
| | | | |
| +----------+ | |
| ^ | |
| | | |
| | | |
| |error(e) | |
| | | |
| | | |
v | | |
+--------+ +--------+ +----------+ +----------+
| | send(file) |Awaiting|resolveURL(url) | | success() | |
| Start +------------->| URL +--------------->|Uploading +------------->| Saving |
| | | | | | | |
+--------+ +--------+ +----------+ +----------+
^ ^ | |
| | | |
| | | |
| +----------+ |
| progress(event) |
| |
reset() | |
| +----------+ |
| | | success() |
+------------------| Success |<---------------------------------------------+
| |
+----------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment