Get File's MetaData Information With jQuery - Amelia

File Size: 6.59 KB
Views Total: 1078
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Get File's MetaData Information With jQuery - Amelia

Amelia is a lightweight jQuery plugin that reads and gets a file's metadata (size, file type, base64 encoded string,etc) using the readAsDataURL API.

How to use it:

1. Download and insert the minified version of the jQuery Amelia plugin after jQuery library.

<script src="" 
<script src="js/jquery.amelia.min.js"></script>

2. Create a regular file input on the page.

<input type="file" id="myFile">

3. Get the metadata information from a file you selected.

var myNative = [];

  storage: myNative

4. Output the metadata information.


5. Specify the allowed file types and max file size.

  allowedFiles: [
  allowedSize: 5e+6, // bytes (5 mb)

This awesome jQuery plugin is developed by yanwarsolah. For more Advanced Usages, please check the demo page or visit the official website.