我有这段代码
var express = require('express');
var http = require('http');
var app = express();
var server = http.createServer(app);
app.use(express.static(__dirname + '/uploads'));
console.log("listen to 8080");
server.listen(8080);
我将图片上传至/uploads/test.jpg
,但是当我打开http://localhost:8080/uploads/test.jpg
时,出现了Cannot GET /uploads/test.jpg
的提示信息。