-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Bug] Not adding file correctly "[object Promise]" contents always #51
Comments
Was able to workaround it by using this approach from the thread I found this package in: |
@philjones88 thanks for submitting the issue! The only thing I've spotted is this async handlers mapping that may not work as we want it to: Will take a look later today if that is the cause, cuz the rest is actually the same as on the solution you mentioned, just encapsulated in the plugin. |
@philjones88 can you try out v3.0.7 I've just published? It should solve the issue. |
If your thing is fixed, I think it might be good to have a separate example folder for angular components related to file upload (like ng2-file-upload you mentioned). |
@abramenal nice work, 3.0.7 works with |
Yay perfect! |
I've put up a pull request to add @philjones88! 🎉 |
Will work on angular examples later on. Stay tuned :) |
Current behavior:
Against an ng2-file-upload target https://github.com/valor-software/ng2-file-upload
The HTTP request then made by angular is:
Which is wrong as it should be the file contents.
The angular app logging shows the file in ng2-file-upload as:
Desired behavior:
Should add the file properly
Steps to reproduce: (app code and test code)
Maybe try targeting these demo controls https://valor-software.com/ng2-file-upload/
Versions
Cypress 3.2.0
MacOS latest
Node LTS
Chrome
The text was updated successfully, but these errors were encountered: