使用ng2-file-upload插件通过文件对象上传文件

时间:2018-11-19 13:59:15

标签: javascript angular promise base64 filereader

我正在Angular 4.x项目中使用ng2-file-upload-我正在尝试传递base64字符串,该字符串可用于将该文件直接传递到FileUploader类中-我不确定这是否是偶数可以查看当前的文档吗?

https://github.com/valor-software/ng2-file-upload

<input type="button" value="Brave" onclick="showDiv('brave')">
<input type="button" value="Determined" onclick="showDiv('determined')">
<input type="button" value="Compassionate" onclick="showDiv('compassionate')">
<input type="button" value="Considerate" onclick="showDiv('considerate')">

<div id="output-divs">
  <div class="output-div selected" id="brave">Brave</div>
  <div class="output-div" id="determined">Determined</div>
  <div class="output-div" id="compassionate">Compassionate</div>
  <div class="output-div" id="considerate">Considerate</div>
</div>

0 个答案:

没有答案