- Cowboy example
- Can load multiple files. Has an optional limit on file size.
- Also can accept the text data from the tags:
<input type='text' name='somevalue' ">
- Type in your shell:
$ rebar get-deps
$ rebar compile
$ erl -pa ebin deps/*/ebin -s hello_world
- Open URL: http://127.0.0.1/
- Optional, type in erl console for realtime recompilation:
> sync:go().
data_payload(FieldName, Body)
- callback function for received text fieldsfile_payload(FieldName, Filename, TempFilename, FileSize)
- callback function for each received file
- Tested with Cowboy 0.9
- @m-2k