Drag-and-drop file-upload Changing the background image or t

web
mobile

Topic: Drag-and-drop file-upload Changing the background image or text

vonmonckl pro premium asked 6 months ago

Expected behavior The ability to change the background image or text in the mdb-file-upload plugin

Actual behavior I cannot change it or do not know how to

Resources (screenshots, code snippets etc.)


Mateusz Łubianka staff answered 6 months ago

Hi @vonmonckl,

You have to add style to 'mask rgba-stylish-slight' class. Default oppacity is 0 so the mask is invisible. You should add oppacity > 0 and < 1. For example:

.mask {
background-color: red;
oppacity: 0.5;
}

Best,


vonmonckl pro premium commented 6 months ago

Actually, I was looking for a way to change the default text. I have solved this by changing the default text in the original js-code. Not ideal, but it works. Perhaps MDB could parameterize this (look at dropzone.js for example).


Mateusz Łubianka staff commented 5 months ago

There is no built-in options for this, but thank you for your opinion. I will add this idea to our ideas list and team will consider it.

Best,


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: jQuery
  • MDB Version: 4.11.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No