![]() | 1 Livid MOD PRO 你的提交页面的 HTML 发上来看看。 |
![]() | 2 binux 2012-12-06 11:44:04 +08:00 上传表单是怎么样的 |
![]() | 3 kenneth OP @livid 是不是self.request里面没有东西啊? {% extends "base.html" %} {% block title %}{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block content %} <form action="/upload" enctype="mutilpart/form-data" method="post"> <input type="file" name="file1" /> <input type="submit" value="上传" /> {{xsrf_form_html()}} </form> {% endblock %} |
![]() | 5 yujnln 2012-12-06 12:46:43 +08:00 你没有定义你的file1 <input type="file" name="file1" /> |
![]() |
![]() | 8 yujnln 2012-12-06 12:50:07 +08:00 ![]() |
![]() | 10 kenneth OP 感谢已发送,真是丢人。我面壁去了。谢谢各位。 |