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 commented 5 months 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 commented 5 months ago

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


Damian Gemza commented 5 months 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.
Status

Resolved

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