AnsweredAssumed Answered

this.model showing undefined

Question asked by Akshay Sharma on Dec 27, 2017
Latest reply on Apr 12, 2018 by chofer@morainepark.edu

Hi 
I am Using D2l plugin
https://github.com/navnorth/d2l_importer

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 (ChooseMigrationFileView.coffee:30)
   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 

Outcomes