浏览代码

remove getMetaFromForm and unused options

Artur Paikin 7 年之前
父节点
当前提交
60cf71325a
共有 3 个文件被更改,包括 0 次插入7 次删除
  1. 0 4
      src/plugins/Dashboard/index.js
  2. 0 1
      src/plugins/DragDrop/index.js
  3. 0 2
      src/plugins/FileInput.js

+ 0 - 4
src/plugins/Dashboard/index.js

@@ -63,7 +63,6 @@ module.exports = class Dashboard extends Plugin {
     // set default options
     const defaultOptions = {
       target: 'body',
-      getMetaFromForm: true,
       metaFields: [],
       trigger: '#uppy-select-files',
       inline: false,
@@ -439,13 +438,10 @@ module.exports = class Dashboard extends Plugin {
       handlePaste: this.handlePaste,
       showProgressDetails: this.opts.showProgressDetails,
       inline: this.opts.inline,
-      semiTransparent: this.opts.semiTransparent,
       showPanel: this.showPanel,
       hideAllPanels: this.hideAllPanels,
       log: this.uppy.log,
       i18n: this.i18n,
-      // pauseAll: this.pauseAll,
-      // resumeAll: this.resumeAll,
       addFile: this.uppy.addFile,
       removeFile: this.uppy.removeFile,
       info: this.uppy.info,

+ 0 - 1
src/plugins/DragDrop/index.js

@@ -25,7 +25,6 @@ module.exports = class DragDrop extends Plugin {
     // Default options
     const defaultOpts = {
       target: null,
-      getMetaFromForm: true,
       width: '100%',
       height: '100%',
       note: '',

+ 0 - 2
src/plugins/FileInput.js

@@ -19,8 +19,6 @@ module.exports = class FileInput extends Plugin {
     // Default options
     const defaultOptions = {
       target: null,
-      getMetaFromForm: true,
-      replaceTargetContent: false,
       allowMultipleFiles: true,
       pretty: true,
       locale: defaultLocale,