Option to upload file directly in the request body and set http method. #8

Open
wants to merge 6 commits into
from

Conversation

Projects
None yet
2 participants

Hi

I added a few things that seemed useful to me.

  • Fixes a broken test case. Upload was created without file.
  • Add support for uploading files directly in request body without multipart encoding.
  • Use a blob instead of the file input, makes it more convenient to run the tests. It also fixes a problem that the change event handlers are executed in each following test again.
  • Adds the option to set the http method.

If you prefer i can send the commits as separate pull requests.

Owner

Swatinem commented Apr 23, 2014

I have merged #9, so upload.to() now takes an options object. Would be awesome if you could update your patch for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment