Topic: mdb-file-upload defaultFile querystring

pzimmer priority asked 2 years ago


Expected behavior

DefaultFile should display even if the URL has a querystring

Actual behavior

DefaultFile does not display if the URL has a querystring

Resources (screenshots, code snippets etc.)

  • https://mdbootstrap.com/plugins/angular/file-upload/ https://mdbootstrap.com/snippets/angular/pzimmer/3130916

    mdb-file-upload does not display image if it has a querystring in the URL
    <img src="https://mdbcdn.b-cdn.net/img/Photos/Others/images/89.jpg" />
    <img src="https://mdbcdn.b-cdn.net/img/Photos/Others/images/89.jpg?sev=2020" />
    <mdb-file-upload (fileRemoved)="onFileRemove()" (fileAdded)="onFileAdd($event)" [defaultFile]="'https://mdbcdn.b-cdn.net/img/Photos/Others/images/89.jpg'"></mdb-file-upload>
    <mdb-file-upload (fileRemoved)="onFileRemove()" (fileAdded)="onFileAdd($event)" [defaultFile]="'https://mdbcdn.b-cdn.net/img/Photos/Others/images/89.jpg?sev=2020'"></mdb-file-upload>
    

Arkadiusz Idzikowski staff commented 2 years ago

@pzimmer Thank you for reporting this problem, we will take a closer look at that.


Arkadiusz Idzikowski staff answered 2 years ago


We added a fix for this problem in v12.2.0.



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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB4 11.1.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes