Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Progress / Upload Event #171

Open
dplewis opened this issue Nov 30, 2018 · 0 comments
Open

Add Progress / Upload Event #171

dplewis opened this issue Nov 30, 2018 · 0 comments

Comments

@dplewis
Copy link

dplewis commented Nov 30, 2018

Bump of #37

I can submit a PR if it can be merged.

If you are looking for maintainers for this project I'd be more than welcome to help.

$('#file').on('change', function (event) {
  var xhr = new XMLHttpRequest();
  xhr.upload.addEventListener('progress', onProgress, false);
  xhr.addEventListener('load', onSuccess, false);
  xhr.open('POST', '/upload/audio');
  fd = new FormData();
  fd.append('file', event.target.files[0]);
  xhr.send(fd);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant