角上传文件指令 [英] Angular upload file directive

查看:161
本文介绍了角上传文件指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要上传文件指令(brwose选择文件,并把它作为二进制数据),在我的角度应用。

I need a directive for upload file (brwose to choose file, and get it as binary data ) , in my angular application.

我用了很多次,所以它是通用的。

I use it a lot of times, so it has to be generic.

什么是做到这一点的最好方法是什么?

What is the best way to do it?

推荐答案

https://github.com/ flowjs / NG流

这工作fine.Of过程中的一些包装指令可以在你身边进行。

This works fine.Of course some wrapping directive can be made at your side.

这篇关于角上传文件指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆