How to upload image in N2O erlang

163 views Asked by At

I am setting up a new server in erlang n2o web framework, and want to upload image using #upload. How can I use upload event.

1

There are 1 answers

0
Namdak Tönpa On

[1]. https://github.com/synrc/sample/blob/master/src/index.erl#L14
[2]. https://github.com/synrc/sample/blob/master/priv/static/index.htm#L7

$file.progress = function onprogress(offset,total,guid,name) {
    console.log(name);
};