Skip to content

Simple, lightweight jQuery plugin that enables async upload of files.

Notifications You must be signed in to change notification settings

skipperbent/jquery.async.upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

jquery.async.upload

Simple, lightweight jQuery plugin that enables async file upload.

Example

<form>
	<input type="file" name="image" id="picture" />
</form>

<script>
	$(document).ready(function() {
		$('#picture').asyncUpload({
		      postUrl: '/file/upload-image', 
		      onComplete: function(response) {
		        // Triggers when file has been uploadet
		      },
		      onError: function(errors) {
		        // Triggers when an error occur 
		      },
		      onLoad: function() {
		        // Triggers when the hidden form has been loaded
		      },
		      onFileChange: function() {
		        // Triggers when file has been chosen or changed
		      }
	    });
	});
</script>

About

Simple, lightweight jQuery plugin that enables async upload of files.

Resources

Stars

Watchers

Forks

Packages

No packages published