/uploadBase64

Upload image file in convert Base64

Primary LanguageJavaScript

uploadBase64 First Release

Upload image file and convert Base64 with Jquery

uiConstruction.js is a plugin for jQuery that adds a beautiful and parameterized a form Under Construction. It works in all modern browsers including touch devices.

Example

alt tag

Demo

http://msaikrd.github.io/uploadBase64/

Usage

HTML code:

<input id="input-file" type="file" multiple accept="image/*" name="file" />

JavaScript code:

//Standar usage:
$('#input-file').uploadBase64();
//Advance usage:
$('#input-file').uploadBase64({
  limit:5, // Limit to upload image (Default unlimit)
  maxsize:20024, // Max size in KB (Default unlimit)
  filetype:['jpg','jpeg','png'] // List of supported extensions (Default JPG, JPEG, PNG, GIF)
});

Requirements

jQuery 1.7 or later

Browser support

  • Chrome, Safari 5, Firefox, IE 7 or later

License

Released under a non-commercial BSD license