previewTemplate
which defaults to this:dz-preview
) gets the dz-processing
class when the file gets processed, dz-success
when the file got uploaded and dz-error
in case the file couldn’t be uploaded. In the latter case, data-dz-errormessage
will contain the text returned by the server.previewTemplate
config.file.previewElement
.previewTemplate
from scratch, you should put elements with the data-dz-*
attributes inside:data-dz-name
data-dz-size
data-dz-thumbnail
(This has to be an <img />
element and the alt
and src
attributes will be changed by Dropzone)data-dz-uploadprogress
(Dropzone will change the style.width
property from 0%
to 100%
whenever there’s a uploadprogress
event)data-dz-errormessage
addRemoveLinks
config), you can simply insert elements in the template with the data-dz-remove
attribute. Example: