MdbFileUpload - Update the file name


Topic: MdbFileUpload - Update the file name

Revature Pro pro premium priority asked 3 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 3 years ago

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


Revature Pro pro premium priority commented 3 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 3 years ago

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


Arkadiusz Idzikowski staff answered 3 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
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 8.0.0
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: No