Skip to content

Commit

Permalink
rm form upload demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rwifeng committed Jun 23, 2014
1 parent be59e16 commit fe365ef
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 44 deletions.
12 changes: 0 additions & 12 deletions demo/js/form-upload.js

This file was deleted.

9 changes: 1 addition & 8 deletions demo/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,11 @@ app.get('/', function(req, res) {
uptoken_url: config.Uptoken_Url
});
});
app.get('/form.html', function(req, res) {
res.render('form.html', {
domain: config.Domain,
uptoken_url: config.Uptoken_Url
});
});

qiniu.conf.ACCESS_KEY = config.ACCESS_KEY;
qiniu.conf.SECRET_KEY = config.SECRET_KEY;

//function PutPolicy(scope, callbackUrl, callbackBody, returnUrl, returnBody,asyncOps, endUser, expires)
var uptoken = new qiniu.rs.PutPolicy(config.Bucket_Name, '', '', '', '{"fname": $(fname), "x:content": "I am rwf", "suffix": "$(suffix)"}'); //, 'http://www.baidu.com', '{}');
var uptoken = new qiniu.rs.PutPolicy(config.Bucket_Name);


app.listen(config.Port, function() {
Expand Down
24 changes: 0 additions & 24 deletions demo/views/form.html

This file was deleted.

0 comments on commit fe365ef

Please sign in to comment.