Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想允许我的用户从他们的计算机上传文件,或者提供要上传的文件的 url。
有没有办法可以使用 HTML 文件输入来实现这两者?如果文件来自 POST 数据,我的 django 后端会更容易。
不,不可能将<input type="file" />用于这两个目的。
<input type="file" />
文件输入无法处理字符串值。