首页 > 解决方案 > 如何在 N2O erlang 中上传图片

问题描述

我在 erlang n2o Web 框架中设置了一个新服务器,并想使用#upload 上传图像。如何使用上传事件。

标签: erlangimage-uploadingnitrogenn2o

解决方案


[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);
};


推荐阅读