Page MenuHomePhabricator

D13786.diff
No OneTemporary

D13786.diff

diff --git a/native/media/file-utils.js b/native/media/file-utils.js
--- a/native/media/file-utils.js
+++ b/native/media/file-utils.js
@@ -195,7 +195,12 @@
try {
const assetInfo = await MediaLibrary.getAssetInfoAsync(mediaNativeID);
success = true;
- localURI = assetInfo.localUri;
+ // on iOS18 getAssetInfoAsync returns uri with a weird #YnBsaXN... suffix
+ // this looks like iOS bug, so to mitigate it for now we simply remove
+ // the suffix
+ // https://github.com/expo/expo/issues/31857
+ // https://forums.developer.apple.com/forums/thread/760499
+ localURI = assetInfo.localUri.replace(/#.*$/, '');
if (Platform.OS === 'ios') {
orientation = assetInfo.orientation;
} else {

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 9:41 AM (18 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2561055
Default Alt Text
D13786.diff (735 B)

Event Timeline