-
-
Druid WensleydaleA wonderful serenit of my entire soul. 20 May 2018, 15:32
- Inverness McKenzieA wonderful serenit of my entire soul. 20 May 2018, 15:32
- McKenzie InvernessA wonderful serenit of my entire soul. 20 May 2018, 15:32
- Inverness McKenzieA wonderful serenit of my entire soul. 20 May 2018, 15:32
- Show All Notifications
-
-
George Martin
Hello, Welcome here
Dropify Default
HTML:
<input type="file" class="dropify" data-default-file="" />
JS:
$('.dropify').dropify();
Dropify Default
Add data-height="200"
attribute into HTML
Dropify Max file size
Add data-max-file-size="3M"
attribute into HTML
Dropify Min width
Add data-min-width="400"
attribute into HTML
Dropify Max width
Add data-max-width="1000"
attribute into HTML
Dropify Min height
Add data-min-height="400"
attribute into HTML
Dropify Max height
Add data-max-height="1000"
attribute into HTML
Dropify Disabled
Add disabled="disabled"
attribute into HTML
Dropify Show remove
Add data-show-remove="false"
attribute into HTML
Dropify Show loader
Add data-show-loader="false"
attribute into HTML
Dropify Show errors
Add data-show-errors="true"
attribute into HTML
Dropify Error position
Add data-errors-position="outside"
attribute into HTML
Dropify allowed formats
Add data-allowed-formats="portrait square"
attribute into HTML
Dropify allowed file extensions
Add data-allowed-file-extensions="pdf png psd"
attribute into HTML
Dropify Max file size preview
Add data-max-file-size-preview="3M"
attribute into HTML
Dropify Messages
Add
{
messages: {
'default': 'Drag and drop a file here or click',
'replace': 'Drag and drop or click to replace',
'remove': 'Remove',
'error': 'Ooops, something wrong happended.'
}
}
into init option
Dropify Errors
Add
{
error: {
'fileSize': 'The file size is too big ({{ value }} max).',
'minWidth': 'The image width is too small ({{ value }}}px min).',
'maxWidth': 'The image width is too big ({{ value }}}px max).',
'minHeight': 'The image height is too small ({{ value }}}px min).',
'maxHeight': 'The image height is too big ({{ value }}px max).',
'imageFormat': 'The image format is not allowed ({{ value }} only).'
}
}
into init option