anoFile - Lightweight jQuery Ajax File Upload Demo
Download anoFile Documentation


No file(s) uploaded yet.

anoFile.on(
{
	before: function(event)
	{
		return true;
	},
	success: function(event, ui)
	{	
		var debug = $('[data-debug]');
		
		debug.empty().hide();
		
		if (ui.json.success)
		{
			$.each(ui.json.files, function(index, file)
			{
				var row = $('<div/>').append(file.name + ' (' + file.size + ')').appendTo(debug);
			})
		}
		else 
		{
			$.each(ui.json.errors, function(index, error)
			{
				var row = $('<div/>').append(error).appendTo(debug);
			})
		}
		
		debug.slideDown(300);
	}
}).render('label.ajax');


No file(s) uploaded yet.