blueimp/jQuery-File-Upload — Issue #858: Getting "No File Chosen," though the images upload fine after submitting
Author: dannytatom
Created: 2011-12-08 00:21:13+00:00
State: open

Shorter version of what I'm using:

```javascript
$('input[type=file]').fileupload({
dataType: 'json',
url: '/api/pending_photos.json',

paramName: 'pending_photo',
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,

add: function(e, data) {
$('input[type=submit]').click(function() {
var xhr = data.submit();

xhr.success(function(data) {
// lots of irrelevant stuff happening here
});

return false;
});
}
});
```