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
<!DOCTYPE html><html><head><linkhref="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"><!-- Not recommended link for production use; just to demonstrate issue exists in current master --><linkhref="https://rawgit.com/kartik-v/bootstrap-fileinput/master/css/fileinput.min.css" rel="stylesheet"></head><body><inputid="file-input" name="files[]" type="file" multiple><scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><!-- Not recommended link for production use; just to demonstrate issue exists in current master --><scriptsrc="https://rawgit.com/kartik-v/bootstrap-fileinput/master/js/fileinput.min.js"></script><script>$(function(){$('#file-input').fileinput({'previewFileType': 'any'});});</script></body></html>
Upload a 0-byte file.
Expected behavior and actual behavior
(NaN undefined) appears below the filename in the previewer.
I would have expected (0 bytes) to appear instead.
Environment
Browsers
Tested in Chrome on Windows (10).
The text was updated successfully, but these errors were encountered:
pjetherton
added a commit
to pjetherton/bootstrap-fileinput
that referenced
this issue
Mar 6, 2017
Steps to reproduce the issue
Minimal HTML example:
Upload a 0-byte file.
Expected behavior and actual behavior
(NaN undefined)
appears below the filename in the previewer.I would have expected
(0 bytes)
to appear instead.Environment
Browsers
Tested in Chrome on Windows (10).
The text was updated successfully, but these errors were encountered: