Skip to content

Commit

Permalink
Pass upload object to url callback.
Browse files Browse the repository at this point in the history
Enables referencing upload filename, fixes #135.
  • Loading branch information
boughtonp committed Jun 8, 2015
1 parent 5de4e81 commit 7e536a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.filedrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@

// Allow url to be a method
if (jQuery.isFunction(opts.url)) {
xhr.open(opts.requestType, opts.url(), true);
xhr.open(opts.requestType, opts.url(upload), true);
} else {
xhr.open(opts.requestType, opts.url, true);
}
Expand Down

0 comments on commit 7e536a1

Please sign in to comment.