To try this example, you need GNU make and git in your PATH.
If you don’t have HTTPie installed, use the appropriate cURL commands instead.
To build the example, run the following command:
makeTo start the release in the foreground:
./_rel/upload-example/bin/upload-example consoleNote: The previous command also starts an Erlang console.
To start the app and an LFE shell:
lfe -pa ebin -pa deps/*/ebin -s upload # make devPoint your browser at http://localhost:8080.
The uploaded file will be displayed in the shell directly.
Received file <<"mccarthy_desktop.png">> of content-type <<"image/png">> as follows:
%% giant binary representing the image