You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ You'll also need to load either the [Material Icon](https://material.io/icons/)
14
14
````
15
15
16
16
## Usage
17
-
1. Import the module (`import Dropzone from 'vue2-dropzone'`)
17
+
1. Import the module (`import Dropzone from 'vue2-dropzone'`)
18
18
2. Register it as a component as you would any other Vue component
19
19
3. Use it within your template
20
20
@@ -59,7 +59,7 @@ Many of these props are inherited from [dropzone configuration so see their doco
59
59
| id | String | A string by which to identify the component, can be anything. **Required**|
60
60
| url | String | Url to post the upload to. **Required**|
61
61
| paramName | String | The name of the file param that gets transferred. Defaults to file. NOTE: If you have the option uploadMultiple set to true, then Dropzone will append [] to the name.|
62
-
| clickable | Boolean| Whether the dropzone area is clickable, if false then users can only drag items on to the area.|
62
+
| clickable | Boolean, String | Whether the dropzone area is clickable, if false then users can only drag items on to the area. Can also accept a CSS selector of an element that will open the file dialog when clicked. |
63
63
| acceptedFileTypes | String | A comma separated string of accepted file types eg 'image/*,application/pdf,.psd' .|
64
64
| thumbnailHeight | Number | The height of thumbnails in pixels.|
65
65
| thumbnailWidth | Number | The width of thumbnails in pixels.|
@@ -74,12 +74,13 @@ Many of these props are inherited from [dropzone configuration so see their doco
74
74
| dropzoneOptions | Object | A custom set of rules to define your dropzone object, use anything available in the [dropzone config](http://www.dropzonejs.com/#configuration-options).|
75
75
| preview-template | Function | A custom preview template which will be passed as function. See following Note |
76
76
| resizeWidth | Number | If set, images will be resized to these dimensions before being uploaded. If only one, `resizeWidth` or `resizeHeight` is provided, the original aspect ratio of the file will be preserved. `Default : null`|
77
-
| resizeHeight | Number | Height of image to be resized. `Default : null`|
77
+
| resizeHeight | Number | Height of image to be resized. `Default : null`|
78
78
| resizeMimeType | String | The mime type of the resized image (before it gets uploaded to the server). If `null` the original mime type will be used. To force `jpeg`, for example, use `image/jpeg`. `Default : null`|
79
79
| resizeQuality | Number | The quality of the resized images. `Default : null`|
80
-
| resizeMethod | String | How the images should be scaled down in case both, `resizeWidth` and `resizeHeight` are provided. Can be either `contain` or `crop`. `Default : 'contain'`|
80
+
| resizeMethod | String | How the images should be scaled down in case both, `resizeWidth` and `resizeHeight` are provided. Can be either `contain` or `crop`. `Default : 'contain'`|
81
81
| duplicateCheck | Boolean | Whether to check for duplicate file by file name. if true `duplicate-file` event will be emitted. `Default : 'false'`|
82
82
| timeout | Number | The timeout for the XHR requests in milliseconds. `Default:30000`|
83
+
| method | String | The HTTP method used to submit form file data. `Default:post`|
0 commit comments