diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 21e28710f27e..6939287b873f 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -439,7 +439,7 @@ PODS: - react-native-config/App (= 1.4.5) - react-native-config/App (1.4.5): - React-Core - - react-native-document-picker (7.1.1): + - react-native-document-picker (8.0.0): - React-Core - react-native-flipper (0.117.0): - React-Core @@ -926,7 +926,7 @@ SPEC CHECKSUMS: React-jsinspector: d0374f7509d407d2264168b6d0fad0b54e300b85 React-logger: 933f80c97c633ee8965d609876848148e3fef438 react-native-config: 6502b1879f97ed5ac570a029961fc35ea606cd14 - react-native-document-picker: 0e3602a4064da040321bafad6848d8b0edcb1d55 + react-native-document-picker: 429972f7ece4463aa5bcdd789622b3a674a3c5d1 react-native-flipper: 169e8ba429b73ad637ce007337ce4b415e783799 react-native-image-picker: 4089335b89b625d4e34d53fb249c48a7a791b3ea react-native-netinfo: 3a61a486f2329f5884753fd5bab21450a535d97c diff --git a/package-lock.json b/package-lock.json index fd01c6a5a73c..ecfad2ab8b56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37020,9 +37020,9 @@ "integrity": "sha512-5oiAsoW88SOYDg/0cleJ2vJDqv98FJUbFQYEnH4sdMtEn3AAT3lb7BkTGW8HO/t3Vk9VOruwxUUnO4tzuxzCsw==" }, "react-native-document-picker": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/react-native-document-picker/-/react-native-document-picker-7.1.1.tgz", - "integrity": "sha512-lEgyfl+JbU/UCDu8UdagBrC5CC71WTfqCzWyGeALLZiXGHrCJo/5BMqWbAc9PSCeiqNMnFkjcybO/kws5gMkxA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/react-native-document-picker/-/react-native-document-picker-8.0.0.tgz", + "integrity": "sha512-4O1FNOJHzfZ7BBFOJhNoeCKHSjthFtZyMEWJsAxX1ORdShGSa6miLvTHtQjpCDMNWSoPU1C7fXLNNPrv8GAarQ==", "requires": { "invariant": "^2.2.4" } diff --git a/package.json b/package.json index b6bffcf43131..b84c46146854 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "react-native": "0.66.4", "react-native-collapsible": "^1.6.0", "react-native-config": "^1.4.5", - "react-native-document-picker": "^7.1.1", + "react-native-document-picker": "^8.0.0", "react-native-fast-image": "^8.5.11", "react-native-gesture-handler": "1.9.0", "react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#3bbd17d63e6c38d38d857b50f6037c1c0376ff06", diff --git a/src/components/AttachmentPicker/index.native.js b/src/components/AttachmentPicker/index.native.js index 15cd8f4bba52..ef21eca8e61e 100644 --- a/src/components/AttachmentPicker/index.native.js +++ b/src/components/AttachmentPicker/index.native.js @@ -71,13 +71,6 @@ function getDataForUpload(fileData) { size: fileData.fileSize || fileData.size, }; - // When the URI is lacking uri scheme - file upload would fail - // Prefixing the uri with `file://` fixes attachment upload on Android - const hasScheme = /^.+:\/\//.test(fileResult.uri); - if (!hasScheme) { - fileResult.uri = `file://${fileResult.uri}`; - } - if (fileResult.size) { return Promise.resolve(fileResult); }