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.
我有一个表格enctype = "multipart / form-data"。我需要将其发送到 REST API 进行上传。服务器正在使用 Django 和活塞。请告诉我如何最好地做到这一点。从 JavaScript(骨干网)开始,将其与文件一起序列化为 JSON。或者这是不可能的?也许我需要单独上传文件,获取他们的 ID,然后只通过 REST 发送它们?
enctype = "multipart / form-data"
你可以有一个插件来做到这一点,你不觉得吗?
http://lagoscript.org/jquery/upload/demo?locale=en