2016-11-30 127 views
-2

如何将图像从我的PC上传到Firebase的Web应用程序中?使用Angular.js将图像上传到Firebase

HTML

<div class="image-file"> 
    <input type="file" id="img-input" ng-model="img"> 
</div> 

我的火力URL

"https://shopper-fbdbf.firebaseio.com/images" 

我没能获得在控制器的输入值。还有其他解决方案吗?任何API可用于此目的?

+0

见https://firebase.google.com/docs/storage/web/upload-files –

回答