Giter VIP home page Giter VIP logo

flickerjs's People

Contributors

dawsbot avatar flickerapps avatar greenkeeperio-bot avatar venturachrisdev avatar

Stargazers

 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

flickerjs's Issues

how handle mutlipart upload request

like multer in express
app.js

var express = require('express');
var multer  = require('multer')

var app = express();
var upload = multer({ dest: 'myfiles/' });
app.get('/', function(req, res, next){
    res.send('<form action="/upload" enctype="multipart/form-data" method="post"><input type="file" name="upfile" id="f" /><input type="submit" value="upload" /></form>');
});

app.post('/upload', upload.single('upfile'), function(req, res, next){
    res.send({ret_code: '0'});
});


app.listen(3000);

curl -F "[email protected]" http://localhost:3000/upload

TODO

  1. The 404.pug file is unnecessary. commit

  2. If is discommented the favicon middleware and favicon.ico isn't in static dir, throw an exception. commit

  3. In res.json() -> should to use JSON.stringify(obj, null, for print two spaces btw vars. commit

  4. create a flicker.log for log the calls to next(err). commit

  5. rename some functions and delete a few of them in order to create most generalists fuctios that her first param is a JSON with the options.

5b) rename app.use to app.go: commit

    app.to(
        {
            method: "GET",
            url:"/foo"
        },
         (req,res,next)  => {
             next();
         }
    );
  1. Accept two middlewares in app.to()

Replacing this:

App.to({ url:'/foo' },middleware)
    .to({ url:'/foo' },router)

With:

App.to({ url:'/foo' }, middleware, router)

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.