react-native-macos/Libraries/Network
Mehdi Mulani 458e70c79d Upload full video when passed in a PHAsset
Summary:
@public
Right now when you pass a ph:// video asset, we only ever return the image thumbnail of it. This is useful if you're displaying the ph:// in an <Image> but bad if you're trying to upload it.
This change keeps the original behaviour of displaying a thumbnail in an Image but fixes the latter behaviour, so that ph:// videos are uploaded correctly.
NOTE: There is a terrible hack to accomplish this. It is detailed in the code but essentially, we change the URL scheme to ph-upload:// when trying to upload it so that the default image loader doesn't try to process it.

Reviewed By: JoshuaGross

Differential Revision: D15129454

fbshipit-source-id: 18f87bec18b7cfa5edc1d60a47f23ac5d00675e0
2019-04-29 14:14:11 -07:00
..
RCTNetwork.xcodeproj Update Xcode projects (#19574) 2018-06-19 23:48:12 -07:00
__tests__ Remove var from Network/__tests__/XMLHttpRequest-test.js (#22195) 2018-12-07 02:50:05 -08:00
FormData.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
NetInfo.js Upgrade to Flow v0.88.0 2018-12-11 20:01:00 -08:00
RCTDataRequestHandler.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTDataRequestHandler.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTFileRequestHandler.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTFileRequestHandler.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTHTTPRequestHandler.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTHTTPRequestHandler.mm Fix RCTImageLoader multi thread crash (#22746) 2019-01-23 02:50:57 -08:00
RCTNetInfo.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetInfo.m Fix Warnings in Xcode (#23184) 2019-01-28 03:57:42 -08:00
RCTNetworkTask.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetworkTask.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetworking.android.js Remove MissingNativeRCTNetworkingShim; revert MissingNativeAppStateShim (#24380) 2019-04-15 10:47:53 -07:00
RCTNetworking.h Upload full video when passed in a PHAsset 2019-04-29 14:14:11 -07:00
RCTNetworking.ios.js Remove MissingNativeRCTNetworkingShim; revert MissingNativeAppStateShim (#24380) 2019-04-15 10:47:53 -07:00
RCTNetworking.mm Upload full video when passed in a PHAsset 2019-04-29 14:14:11 -07:00
React-RCTNetwork.podspec Split React.podspec into separate podspecs for each Xcode project (#23559) 2019-02-21 18:35:44 -08:00
XHRInterceptor.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
XMLHttpRequest.js Deploy 0.94 to xplat 2019-03-06 14:57:30 -08:00
convertRequestBody.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
fetch.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00