-
-
Notifications
You must be signed in to change notification settings - Fork 598
(Browser / React-Native) Support for File Uri Upload #765
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #765 +/- ##
==========================================
+ Coverage 90.33% 90.37% +0.03%
==========================================
Files 54 54
Lines 4886 4905 +19
Branches 1084 1089 +5
==========================================
+ Hits 4414 4433 +19
Misses 472 472
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm confused...
src/ParseFile.js
Outdated
@@ -317,6 +317,9 @@ const DefaultController = { | |||
if (XHR) { | |||
return this.downloadAjax(uri); | |||
} | |||
if (process.env.PARSE_BUILD !== 'node') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe i don't understand what process.env.PARSE_BUILD is, but the way I'm reading this is:
if we're not in node, complain that we don't have XMLHttpRequest, but XMLHttpRequest is in the browser, not node. set me straight here :).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For browsers that don't support ajax.
https://www.tutorialspoint.com/ajax/ajax_browser_support.htm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PARSE_BUILD is set when building the sdk.
https://github.com/parse-community/Parse-SDK-JS/blob/master/build_releases.sh
* Changelog for patch release 2.3.1 * Update CHANGELOG.md * Changelog for patch release 2.3.1 * add more * Update CHANGELOG.md * Add #765
http
andhttps
modules don't exist in browser