code: function(code) {//on_error function will be called when the selected file has a problem
  					if(last_gritter) $.gritter.remove(last_gritter);
  					if(code == 1) {//file format error
  						last_gritter = $.gritter.add({
  							title: 'File is not an image!',
  							text: 'Please choose a jpg|gif|png image!',
  							class_name: 'gritter-error gritter-center'
  						});
  					} else if(code == 2) {//file size rror
  						last_gritter = $.gritter.add({
  							title: 'File too big!',
  							text: 'Image size should not exceed 100Kb!',
  							class_name: 'gritter-error gritter-center'
  						});
  					}
  					else {//other error
  					}
  				}
docs: ~100Kb