Simple jQuery Plugin For Live File Size Converter - File Size
File Size: | 18.3 KB |
---|---|
Views Total: | 2182 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
File Size is a jQuery plugin used to convert file size in bytes to human readable format (KB, MB, GB, TB, PB, etc).
Basic Usage:
1. Include the latest jQuery library and jQuery file size plugin in the document.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="jquery.filesize.min.js"></script>
2. Wrap a file size in bytes in a selector.
<div class="converter">2000</div>
3. Call the plugin on the jQuery selector.
<script> $(function() { $(".converter").filesize(); }); </script>
4. This will convert '2000' to:
1.95 kB
This awesome jQuery plugin is developed by engineersamuel. For more Advanced Usages, please check the demo page or visit the official website.