-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰] Error processing request body: Could not find image file #2119
Comments
same issue |
1 similar comment
same issue |
Same here - upgraded from react-native-image-picker 4.10.3 to 5.3.1. |
I also have the same issue. Currently using 5.3.1 |
Same error here, until this correction was made, I used lib import ImageCropPicke from 'react-native-image-crop-picker';
ImageCropPicker.openPicker({
mediaType: 'photo',
cropping: false
})
.then(data => console.log(data))
.catch(error => console.log(error)); Had a similar result to Image Picker. |
@dmsierra11 I believe the problem is here. Successfully selected image: {
"fileName":"5693202E-E952-4C0D-A69B-2FF9B0F6C688.jpg",
"fileSize":993045,
"height":2500,
"type":"image/jpg",
"uri":"file:///Users/mayderson/Library/Developer/CoreSimulator/Devices/D555E641-C03B-407D-9251-28DBEF5BFEE6/data/Containers/Data/Application/D641C420-4AE4-49AB-A63B-5B05E88F59D7/tmp/5693202E-E952-4C0D-A69B-2FF9B0F6C688.jpg",
"width":1668
} Error selected image: {
"fileName":"B22A70A5-D144-4857-8249-97C1FDB3FAE1.jpg",
"height":0,
"type":"image/jpg",
"uri":"file:///Users/mayderson/Library/Developer/CoreSimulator/Devices/D555E641-C03B-407D-9251-28DBEF5BFEE6/data/Containers/Data/Application/D641C420-4AE4-49AB-A63B-5B05E88F59D7/tmp/B22A70A5-D144-4857-8249-97C1FDB3FAE1.jpg",
"width":0
} In other words, the |
Thank you @maydersonmellops, I also noticed the |
@cokron it happens to me on |
@maydersonmellops it actually happens the same to me with |
Seems to only happen for me on the sim flower image (the one picked in the video above), which is marked as |
+1 |
Yes @bcgilliom, you are totally right, it happens to me only on this picture too. I just don鈥檛 know why. FYI I tried with a different |
I had a similar encounter with a captivating sunflower image. If anyone else has experienced this issue with different images, I would greatly appreciate it if you could kindly share your observations. |
I had the same issue I believe its crashing for the image which are not available like the one that are on cloud. Once the cloud image is downloaded it does not crash. |
Is there any solution to this yet? |
Or any workaround? |
Any work around? |
3.6.0 is working fine but its quite older version |
Also happens in 5.4.0. |
Also happens in 5.4.2 |
same issue on |
Use |
@alizaib1217 Is there any way to don't show cloud images or to download them when picked, or any other solution? |
Same issue in 7.0.1 |
I have created a PR that hopefully fixes this issue. Any testing / feedback would be helpful. |
Looking at @samcodefish PR and from my understanding of the problem, it seems that .heic files cannot be handled like .jpg files. When selecting a .heic file, the copy that you can access from launchImageLibrary response is a .jpg file (at least it is what I find in uri property) and that is why height, width, type and fileSize are wrong and you can't access it. Unfortunately, your PR does not correct this behavior, I still got uri to a .jpg file that result in a bug ("Could not find image ...") I just want to add that to get to this conclusion, I only used the .heic image from the iPhone 12 mini - iOS 16.2 emulator, the one that display flowers. Maybe it is different with a real device or with different images EDIT:
I tried with an other heic file and it works fine (on simulator). Thanks Apple I guess 馃槖 (source https://developer.apple.com/forums/thread/699155?answerId=702819022#702819022) |
Description
Error when trying to upload image from gallery
Running the example app of this repo gives me the same issue:
Simulator.Screen.Recording.-.iPhone.14.-.2023-04-21.at.09.42.45.mp4
How to repeat issue and example
Solution
What needs to be done to address this issue?
Additional Information
The text was updated successfully, but these errors were encountered: