-
-
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
[馃専] fileName property on Response object for iOS videos #1670
Labels
Projects
Comments
Thanks for the report. Its a bug, I will check and fix. |
Having this bug too, made a temporary solution by finding the last index of the forward-slash and creating a substring from there. Will there be a fix for this soon? |
chrisbobbe
added a commit
to chrisbobbe/react-native-image-picker
that referenced
this issue
Dec 3, 2021
4 tasks
I've just sent #1880. |
Johan-dutoit
pushed a commit
that referenced
this issue
Dec 3, 2021
馃帀 This issue has been resolved in version 4.4.0 馃帀 The release is available on: Your semantic-release bot 馃摝馃殌 |
MattDennyir
added a commit
to MattDennyir/react-native-image-picker
that referenced
this issue
Oct 19, 2022
# [4.4.0](react-native-image-picker/react-native-image-picker@v4.3.0...v4.4.0) (2021-12-03) ### Features * **ios:** Add `fileName` to video assets ([#1880](react-native-image-picker/react-native-image-picker#1880)) ([cbe4741](react-native-image-picker/react-native-image-picker@cbe4741)), closes [#1670](react-native-image-picker/react-native-image-picker#1670)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
fileName property is available only for Android photos/videos and photos in iOS, on iOS video fileName is undefined, so it would be cool to add it also for iOS videos.
Proposed Solution
Return fileName property with proper value on iOS video response object from onVideoObtained method
https://github.com/react-native-image-picker/react-native-image-picker/blob/main/ios/ImagePickerManager.m#L151
self.response[@"fileName"] = fileName;
Test Solution
Check if fileName property returned from launchCamera and launchImageLibrary (type: 'video') on iOS device has value
The text was updated successfully, but these errors were encountered: