Artur Paikin 7 years ago
parent
commit
b3349ad42d
1 changed files with 8 additions and 7 deletions
  1. 8 7
      examples/bundled-example/main.js

+ 8 - 7
examples/bundled-example/main.js

@@ -20,12 +20,12 @@ const TUS_ENDPOINT = PROTOCOL + '://master.tus.io/files/'
 const uppy = Uppy({
   debug: true,
   autoProceed: false,
-  // restrictions: {
-  //   maxFileSize: 300000,
-  //   maxNumberOfFiles: 5,
-  //   minNumberOfFiles: 2,
-  //   allowedFileTypes: ['image/*', 'video/*']
-  // },
+  restrictions: {
+    maxFileSize: 300000,
+    maxNumberOfFiles: 5,
+    minNumberOfFiles: 2,
+    allowedFileTypes: ['image/*', 'video/*']
+  },
   onBeforeFileAdded: (currentFile, files) => {
     if (currentFile.name === 'pitercss-IMG_0616.jpg') {
       return Promise.resolve()
@@ -49,7 +49,8 @@ const uppy = Uppy({
     target: 'body',
     locale: {
       strings: {browse: 'wow'}
-    }
+    },
+    note: 'Images and video only, 300kb or less'
   })
   .use(GoogleDrive, {target: Dashboard, host: 'http://localhost:3020'})
   .use(Dropbox, {target: Dashboard, host: 'http://localhost:3020'})