mdb-file-upload defaultFile querystring


Topic: mdb-file-upload defaultFile querystring

pzimmer pro priority asked 1 months 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 1 months ago

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


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB4 11.1.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes