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 110aecf commit 905bc7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ function selectFileToUpload() {
input.onchange = function (e) {
var file = this.files[0]
if (file) {
if (file.size > 0) {
if (file.size > 1024 * 1024) {
cos.sliceUploadFile({
Bucket: config.Bucket, // Bucket 格式:test-1250000000
Region: config.Region,
Expand Down

0 comments on commit 905bc7b

Please sign in to comment.