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!


Topic: MdbFileUpload - Update the file name

Revature Pro priority asked 5 years ago


Any option to change the file name after reading it from the default file.

<mdb-file-upload #uploader id="quizCrAddSetFileUpload" (fileRemoved)="onFileRemove()" (fileAdded)="onFileAdd($event)"
                  [defaultFile]="quiz.imageUrl"></mdb-file-upload>

Example:

Default file URL: https://dev.revature.com/core/resources/download/assessments/2589/view When I keep the same in default file no image is rendered. But if I append the URL with .png or any image extension it's rendering in the plugin and it takes the file name as view.png.

I want to change the file name or remove the file name.


Arkadiusz Idzikowski staff commented 5 years ago

We will take a closer look at this problem and provide a fix/workaround for that.


Revature Pro priority commented 5 years ago

I would like to add one more point to this.

When there is a default file and if we remove the file, then file removed event is not triggered.


Arkadiusz Idzikowski staff commented 5 years ago

Thank you, we will take that into consideration when making changes in the component code.


Arkadiusz Idzikowski staff answered 5 years ago


I'm afraid we cannot do anything with the problem with file name, because we need to somehow read the extension of the default file and check how we should display it in the component template.

As you can see in our changelog, we added other requested changes: https://mdbootstrap.com/docs/angular/changelog/#820



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: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 8.0.0
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: Yes
  • Provided link: No