public interface DropzoneOptions
| Modifier and Type | Method and Description |
|---|---|
void |
setAcceptedFiles(String acceptedFiles)
The default implementation of accept checks the file's mime type or
extension against this list.
|
void |
setAddRemoveLinks(boolean addRemoveLinks)
This will add a link to every file preview to remove or cancel (if
already uploading) the file.
|
void |
setAutoProcessQueue(boolean autoProcessQueue)
When set to false you have to call myDropzone.processQueue() yourself in
order to upload the dropped files.
|
void |
setClickable(boolean clickable)
If true, the dropzone element itself will be clickable, if false nothing
will be clickable.
|
void |
setClickable(Collection<com.google.gwt.dom.client.Element> arrayOfClickableElements)
If true, the dropzone element itself will be clickable, if false nothing
will be clickable.
|
void |
setClickable(String cssSelectorOfClickableElements)
If true, the dropzone element itself will be clickable, if false nothing
will be clickable.
|
void |
setFallback(DropzoneFallbackEvent fallbackHandler)
is a function that gets called when the browser is not supported.
|
void |
setForceFallback(boolean forceFallback)
If true the fallback will be forced.
|
void |
setHeaders(Map<String,String> headers) |
void |
setMaxFiles(int maxFiles)
if not null defines how many files this Dropzone handles.
|
void |
setMaxFilesize(int fileSize)
in MB
|
void |
setMethod(Method method)
Defaults to "post" and can be changed to "put" if necessary.
|
void |
setParallelUploads(int amount)
How many file uploads to process in parallel (See the Enqueuing file
uploads section for more info)
|
void |
setParamName(String paramName)
The name of the file param that gets transferred.
|
void |
setPreviewsContainer(String previewsContainer)
Defines where to display the file previews – if null the Dropzone
element is used.
|
void |
setPreviewTemplate(String previewTemplate)
String that contains the template used for each dropped image.
|
void |
setThumbnailHeight(int height)
The same as
setThumbnailWidth. |
void |
setThumbnailWidth(int width)
If null, the ratio of the image will be used to calculate it.
|
void |
setUploadMultiple(boolean multipleUploads)
Whether Dropzone should send multiple files in one request.
|
void |
setUrl(String url)
Has to be specified on elements other than form (or when the form doesn't
have an action attribute)
|
void setAcceptedFiles(String acceptedFiles)
acceptedFiles - This is a comma separated list of mime types or file
extensions. Eg.: image/*,application/pdf,.psd.void setAddRemoveLinks(boolean addRemoveLinks)
addRemoveLinks - void setAutoProcessQueue(boolean autoProcessQueue)
autoProcessQueue - void setClickable(boolean clickable)
clickable - void setClickable(Collection<com.google.gwt.dom.client.Element> arrayOfClickableElements)
arrayOfClickableElements - void setClickable(String cssSelectorOfClickableElements)
cssSelectorOfClickableElements - void setFallback(DropzoneFallbackEvent fallbackHandler)
fallbackHandler - (GWT Callback)void setForceFallback(boolean forceFallback)
forceFallback - void setMaxFiles(int maxFiles)
maxFiles - void setMaxFilesize(int fileSize)
void setMethod(Method method)
method - void setParallelUploads(int amount)
amount - void setParamName(String paramName)
paramName - void setPreviewsContainer(String previewsContainer)
previewsContainer - void setPreviewTemplate(String previewTemplate)
previewTemplate - void setUploadMultiple(boolean multipleUploads)
multipleUploads - void setUrl(String url)
url - void setThumbnailWidth(int width)
width - void setThumbnailHeight(int height)
setThumbnailWidth. If both are null, images will not be resized.height - Copyright © 2015. All rights reserved.