【发布时间】:2026-02-20 23:15:02
【问题描述】:
正常上传文件我做
<form method='post' enctype='multipart/form-data'>
<p><input type='text', name='name'/></p>
<p><input type='file', name='image'/></p>
<p><input type='submit', value='Wyślij'/></p>
</form>
如果我想在不重新加载页面的情况下发送此表单怎么办?
我可以使用“new FileReader()”并将 base64 绑定到 $scope,但是对于大文件,它不能正常工作。
我可以像上面类似的方式上传我的表单而不重新加载页面吗?
【问题讨论】:
标签: angularjs express upload single-page-application