Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Getting "No File Chosen," though the images upload fine after submitting #858

Closed
its-danny opened this issue Dec 8, 2011 · 2 comments
Closed

Comments

@its-danny
Copy link

Shorter version of what I'm using:

    $('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;
        });
      }
    });
@blueimp
Copy link
Owner

blueimp commented Dec 8, 2011

Please have a look at the replaceFileInput option:
https://github.com/blueimp/jQuery-File-Upload/wiki/Options

@blueimp blueimp closed this as completed Dec 8, 2011
@its-danny
Copy link
Author

Ah, worked great. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants