Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!

ozgehan premium asked 3 years ago


Hello, I use file input like this <mdb-file-input sm :textFieldTitle="$t('FileName')" btn-title="Dosya Seç" gradient="blue" @getValue="getFileInputValue" img /> .When the page first loads, our image is "https://mdbcdn.b-cdn.net/img/Photos/Others/placeholder.jpg". After I upload a photo, image changed and saved .But I want to after saving change the image to default(https://mdbcdn.b-cdn.net/img/Photos/Others/placeholder.jpg). How can I fixed this problem?

enter image description here enter image description here


Marcin Luczak staff answered 3 years ago


Hi,

This component doesn't have any function that could do that but you can manipulate with the src property to achieve that. Please see my snippet: https://mdbootstrap.com/snippets/vue/marcin-luczak/3073472

Keep coding, Marcin from MDB



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB4 6.7.1
  • Device: Computer
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes