Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e4a1d6

Browse files
committed
fix
1 parent b678d1c commit 1e4a1d6

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

bower.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "angularQFileUpload",
3-
"version": "0.0.1",
2+
"name": "angular-qiniu-upload",
3+
"version": "0.0.3",
44
"homepage": "https://github.com/icattlecoder/angularQFileUpload/blob/master/README.md",
55
"authors": [
66
"icattlecoder <[email protected]>"
@@ -22,8 +22,12 @@
2222
"tests",
2323
"Gruntfile.js"
2424
],
25+
"dependencies": {
26+
"angularjs": "~1.2.16",
27+
"angular-local-storage": ">0.1.4"
28+
},
2529
"devDependencies": {
2630
"angularjs": "*",
2731
"angular-local-storage": ">0.1.4"
2832
}
29-
}
33+
}

demo/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ angular.module('qiniuUploadApp', ['angularQFileUpload', 'LocalStorageModule'])
1717
p: 0
1818
};
1919
$scope.selectFiles[index].upload = $qupload.upload({
20-
key: '124/1414748783948772378/网站-首页-01.png',
20+
key: '<your qiniu file key>',
2121
file: $scope.selectFiles[index].file,
22-
token: 'IT9iP3J9wdXXYsT1p8ns0gWD-CQOdLvIQuyE0FOK:ZM79I8EtrxY4T2n47p5rhCQiWDg=:eyJzY29wZSI6ImZvb29vb29vb29vbzoxMjQvMTQxNDc0ODc4Mzk0ODc3MjM3OC_nvZHnq5kt6aaW6aG1LTAxLnBuZyIsImRlYWRsaW5lIjoxNDE0ODM1MTgzLCJmc2l6ZUxpbWl0Ijo1MjQyODgwMH0='
22+
token: '<your qiniu UpToken>'
2323
});
2424
$scope.selectFiles[index].upload.then(function (response) {
2525
$log.info(response);

0 commit comments

Comments
 (0)