Sign in


Sign up


Input file no trabaja correctamente [mdbFileSelect]

MDB SupportCategory: MDB AngularInput file no trabaja correctamente [mdbFileSelect]
Raúl Carlos Rodrigo Sierra Hernández Pro UserPremium asked 5 days ago in MDB pro, version:6

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 replied 15 hours 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

Raúl Carlos Rodrigo Sierra Hernández Pro UserPremium replied 3 days ago

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

Damian Gemza replied 5 days 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