erlang - 如何在 N2O erlang 中上传图片
问题描述
我在 erlang n2o Web 框架中设置了一个新服务器,并想使用#upload 上传图像。如何使用上传事件。
解决方案
[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);
};
推荐阅读
- python - 如何在视图中删除带有条件的obj
- mysql - SQLSTATE[HY000]: errno: 150 "外键约束格式不正确
- ios - 当整个屏幕设置为 RTL 时,我们如何将语义更改为 tableview 单元格的 LTR?
- java - Java:如何生成 KeyPair 形式的私钥,只使用没有 BouncyCastle 的纯 Java.Security?
- string - 使用应用程序语言(最好是批处理脚本)拆分出现次数可变的字符串
- css - 无法使用 Flexbox 使 div 右对齐
- mongodb - Loopback 4:当与 MongoDB 建立连接时,测试永远不会结束
- javascript - 当我增加 textcontent 值时,减少按钮仍然被禁用
- postgresql - 在 Postgres 中更改分区表的表空间
- java - 如何通过 selenium 使用多个主机 ip 访问负载均衡器?