Giter VIP home page Giter VIP logo

douban_website's People

Contributors

loogeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

douban_website's Issues

怎么从multipart/form-data获取到post参数的?

既然海报上传页form enctype类型是multipart/form-data,那么按理来说路由处理里save方法req.body是获取不到movie的,请问是怎么获取到的呢?
exports.save = function(req, res) { var movieObj = req.body.movie; var id =movieObj._id; ......

下面是我的情况
1.未设置ectype='multipart/form-data',默认application/x-www-form-urlencoded
表单正常通过formData post参数
Form-Data:

movie[categoryName]:
movie[category]:590d979e8ab6903a1c46bcda
movie[title]:机器人9号
movie[doctor]:申·阿克
movie[country]:美国
movie[language]:
movie[poster]:https://img1.doubanio.com/view/movie_poster_cover/lpst/public/p494268647.jpg
uploadPoster:b922270259dece707ef6c6a50259a406_r.png
movie[flash]:
movie[year]:2009
但是不能上传文件

2.设置了ectype='multipart/form-data'
可以上传文件,但是表单中普通文本域不再通过formData传送给后台,(通过request.payload)所以后台使用req.body报undefined

环境问题

使用的是什么版本的node以及npm 啊,mongodb呢?

docker image

请问这个项目有docker image吗? 装node的模块 好多依赖很不方便。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.