mirror of
https://github.com/jasny/bootstrap.git
synced 2026-04-24 03:00:49 -04:00
Merge branch 'master' into 122-Clear_input_name_gives_issue_when_using_fileupload_with_AJAX
This commit is contained in:
@@ -542,6 +542,11 @@ $('.inputmask').inputmask({
|
||||
<td>boolean</td>
|
||||
<td>Sets if file input name should be cleared when input is cleared. It's <code>true</code> by default, to tell the server the difference between pressing clear and submit without a change in a normal form.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maxSize</td>
|
||||
<td>float</td>
|
||||
<td>Use this option if you want to limit file upload size. It's in <code>MB</code> and should be set for <code>.fileinput</code> element. For ex. <code>data-max-size="3"</code> allows upload only for files with size <= 3MB. If several files are selected, and only one of them is greater then this option value, all files will be discarded. Event <code>max_size.bs.fileinput</code> is triggered on discard.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -580,6 +585,10 @@ $('.inputmask').inputmask({
|
||||
<td>reseted.bs.fileinput</td>
|
||||
<td>This event is fired after the file input is reset.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>max_size.bs.fileinput</td>
|
||||
<td>This event is fired, if at least one of selected files has size greater then <code>maxSize</code> option, before input is cleared.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- ./bs-table-responsive -->
|
||||
|
||||
Reference in New Issue
Block a user