jquery-attach

File API uploading with progress bar using JQuery and XHR.

Stars
6

Upload files using JQuery, the File API, and XMLHttpRequests. This currently will only work in Firefox and Chrome, and provides accurate progress reporting.

Development Setup

  • gem install bundler
  • bundle install

Running the Example

Running Specs

  • evergreen serve

Demo

JQuery.attach

Requirements

  • JQuery 1.7.1+
  • Firefox 9
  • Chrome 16

Usage

Attach the functionality to a file form field.

$("#upload").attach({ url: "/upload" });

Download

jquery.attach.js