Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.13 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.13 KB

概述

服务端提供文件上传、下载、返回文件列表三个功能,有Django版和NodeJS版两种实现。


服务器端环境

  • CentOS7.0 x64
  • Python2.7
  • Django 1.6.2
  • Node 5.11.1

相关API

  • POST-文件上传:/upload/ #POST表单形式
  • GET-获取文件列表: /getList/ #以JSON形式返回
  • GET-下载文件: /download/?filename=### #参数传带扩展名的文件名

使用说明

  1. cd src
  2. python manage.py syncdb
  3. vim AppServer/settings.py
  4. 更改TEMPLATE_DIRS为正确路径
  5. python manage.py runserver

参考资料