AnsweredAssumed Answered

this.model showing undefined

Question asked by Akshay Sharma on Dec 27, 2017
Latest reply on Apr 12, 2018 by

I am Using D2l plugin

but facing some issue on upload file


this.model.set('pre_attachment', {
  file_size: this.fileSize(fileElement),
  name: filename,
  fileElement: fileElement

the this.model showing undefined in canvas migration file


  Uncaught TypeError: Cannot read property 'set' of undefined
   at ChooseMigrationFile.setAttributes (
   at HTMLInputElement.bound (lodash.underscore.js:460)
   at HTMLDivElement.dispatch (jquery.js:3332)
   at HTMLDivElement.eventHandle (jquery.js:2941)

can anyone please help for the d2l plugin 
what should I change in d2lPlugin so it will be runnable on latest canvas