Skip to content

Instantly share code, notes, and snippets.

View rafael-brandao's full-sized avatar

Rafael Brandão rafael-brandao

  • Dataprev
  • Brasil
  • 10:31 (UTC -03:00)
View GitHub Profile
@jmackie
jmackie / README.md
Last active August 30, 2021 14:29
Basic example of file upload with progress in PureScript

Build the purescript bundle:

spago init
spago install aff console effect web-file web-xhr
spago build && spago bundle-module -m Upload -t index.cjs && browserify index.cjs -s Upload -o index.js

Spin up a dumb server to accept the POST request