async image mdb file upload


Topic: async image mdb file upload

Moises Trigueros asked 2 years ago

Expected behavior It's possible to load image with async pipe in mdb-file-upload plugin?

something like it is shown in the code below

enter image description here

the code in pipe imageUserSrc enter image description here

Thanks in advance!


Arkadiusz Idzikowski staff commented 2 years ago

Did you encounter any problems when using this approach? It should work correctly as long as you pass string with the path to image to the defaultFile input.

Are you sure that your pipe returns correct img path?


Moises Trigueros commented 2 years ago

The image doesn't load :(


I did the test as follows

code

enter image description here enter image description here

load them in the same way, in the img load the image but in the mdb-file-upload not.

What could it be? Or is there another way to upload images to the plugin?


Arkadiusz Idzikowski staff commented a year ago

We will take a closer look at that. It looks like a bug and I'm afraid that there is no easy workaround for now, we will need to make some changes in the internal code of the component.


Moises Trigueros commented a year ago

it's ok , i'll wait for the change , thanks!!


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: Angular
  • MDB Version: 7.5.4
  • Device: Laptop
  • Browser: Chrome
  • OS: Linux
  • Provided sample code: No
  • Provided link: No