We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
File: covalent/core/file/services/file.service.js
xhr.onreadystatechange = function () { if (xhr.readyState === 4) { if (xhr.status === 200 || xhr.status === 201) { subscriber.next(JSON.parse(xhr.response)); subscriber.complete(); } else { subscriber.error(xhr.response); } } };
xhr.onreadystatechange = function () { if (xhr.readyState === 4) { if (xhr.status >= 200 && xhr.status < 300) { subscriber.next(xhr.response); subscriber.complete(); } else { subscriber.error(xhr.response); } } };
I am trying to upload file to AWS S3 which is returning 204 and response in XML. This will fix the issue.
The text was updated successfully, but these errors were encountered:
Can you open a small PR with this fix please? 😄
Sorry, something went wrong.
Sure! I will do that.
fix(file-service): file upload xhr request status and response fix (c…
34ed963
…loses #722) (#729)
No branches or pull requests
Bug Report
File: covalent/core/file/services/file.service.js
What is the expected behavior?
What is the motivation / use case for changing the behavior?
I am trying to upload file to AWS S3 which is returning 204 and response in XML. This will fix the issue.
The text was updated successfully, but these errors were encountered: