we can disabled the preview image in File upload component ?


Topic: we can disabled the preview image in File upload component ?

DEVGASA pro premium priority asked 12 months ago

in the File upload component, we can disabled the preview image ?

https://mdbootstrap.com/docs/angular/plugins/file-upload/#docsTabsAPI

We do not want the preview of the selected image to be shown.

it's possible ?enter image description here


Rafał Seifert answered 12 months ago

You can hide the element by implementing such css rule in your styles.scss file:

mdb-file-upload .file-upload-previews {
    display: none;
  }

.file-upload-previews is an element that the preview is rendered in.


DEVGASA pro premium priority commented 12 months ago

Thank you @Rafał Seifert


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
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 5.0.0
  • Device: PC
  • Browser: Chrome 117.0.5938.63
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: Yes