Home

uploadInPlace

A simple jQuery plugin that allows turns a basic file field into one that uploads in place.

Requires the doTimeout plugin: http://benalman.com/projects/jquery-dotimeout-plugin/ and of course jQuery (only tested with 1.4.2)

Copyright (c) 2010 Ryan Faerman

If this helps you, it'd be cool if you let me know.

Licensed under the MIT license.

http://www.opensource.org/licenses/mit-license.php

Basic Usage

$('input[type=file]').uploadInPlace({
	action: 'save.html', 
	success: function(){
		$('#debug').html('Houston, we have liftoff.');
	},
});

Options

  • action: where to submit the field, defaults to "submit.php"
  • status: the ID of the status div, defaults to "status"
  • method: submission method, defaults to "post"
  • pollTime: how often to check for the completed upload, defaults to 500
  • success: callback invoked upon completed upload
  • onchange: should the file upload right after file selection? defaults to "true"

Updated

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.