hunk.code_window:     this.core.setState({
         metaFields: metaFields
       })
       this.core.emitter.on('file-added', (fileID) => {
         metaFields.forEach((item) => {
           const obj = {}
           obj[item.id] = item.value
           this.core.updateMeta(obj, fileID)
         })
       })
     }
     install () {
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace keep keep keep
hunk.after_edit:     this.core.emitter.on('file-added', this.handleFileAdded)
  
hunk.file_path: src/plugins/MetaData.js
hunk.type: replace
file: const Plugin = require('./Plugin')
  
  /**
   * Meta Data
   * Adds metadata fields to Uppy
   *
   */
  module.exports = class MetaData extends Plugin {
    constructor (core, opts) {
      super(core, opts)
      this.type = 'modifier'
      this.id = 'MetaData'
      this.title = 'Meta Data'
  
      // set default options
      const defaultOptions = {}
  
      // merge default options with the ones set by user
      this.opts = Object.assign({}, defaultOptions, opts)
    }
  
    addInitialMeta () {
      const metaFields = this.opts.fields
  
      this.core.setState({
        metaFields: metaFields
      })
  
      this.core.emitter.on('file-added', (fileID) => {
        metaFields.forEach((item) => {
          const obj = {}
          obj[item.id] = item.value
          this.core.updateMeta(obj, fileID)
        })
      })
    }
  
    install () {
      this.addInitialMeta()
    }
  }
  