Input file no trabaja correctamente [mdbFileSelect]


Topic: Input file no trabaja correctamente [mdbFileSelect]

Hello, I found an error in the MDBUploaderService class for the mdbFileSelect component and what was happening was that when adding the files of type UploadInput ('uploadFile') it did nothing and this was because the Observable was added after launching the Subscriber Then I got it to work correctly.

I changed this 'mdb-uploader.class.ts: 115':

case 'uploadFile':
 this.serviceEvents.emit({type: 'start', file: event.file});
 const sub = this.uploadFile(event.file, event).subscribe((data: any) => {
 this.serviceEvents.emit(data);
 });
 this.uploads.push({file: event.file, sub: sub});
 break;

For this 'mdb-uploader.class.ts: 115':

case 'uploadFile':
 this.serviceEvents.emit({type: 'start', file: event.file});
 const sub = this.uploadFile(event.file, event);
 this.uploads.push({file: event.file, sub: sub});
 sub.subscribe((data: any) => {
  this.serviceEvents.emit(data);
 });
 break;

Greetings.


Damian Gemza staff commented 7 years ago

Dear Raul, I'm sorry, but we're not providing support in Spanish. Please ask your question in English, or I won't be able to help you. I don't know Spanish. Best Regards, Damian

Raúl Carlos Rodrigo Sierra Hernández pro commented 7 years ago

I'm sorry, I just translated the text. Thank you.

Damian Gemza staff commented 7 years ago

Dear Raul, Thanks for your help! We'll check this and if your code is okay, we'll implement it with next release. Best Regards, Damian

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No