Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Jan 15, 2018
1 parent d9e58a9 commit 110aecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ function deleteBucket() {
function putObject() {
// 创建测试文件
var filename = '1mb.zip';
var blob = util.createFile({size: 1024 * 1024 * 10});
var blob = util.createFile({size: 1024 * 1024 * 1});
// 调用方法
cos.putObject({
Bucket: config.Bucket, // Bucket 格式:test-1250000000
Expand Down Expand Up @@ -544,7 +544,7 @@ function selectFileToUpload() {
input.onchange = function (e) {
var file = this.files[0]
if (file) {
if (file.size > 1024 * 1024) {
if (file.size > 0) {
cos.sliceUploadFile({
Bucket: config.Bucket, // Bucket 格式:test-1250000000
Region: config.Region,
Expand Down

0 comments on commit 110aecf

Please sign in to comment.