Skip to content

Commit 2626b46

Browse files
committed
fix: upload file/image and respect app settings
1 parent 3533a8a commit 2626b46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package/expo-package/src/optionalDependencies/takePhoto.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export const takePhoto = ImagePicker
5757
if (photo.mimeType.includes('video')) {
5858
const clearFilter = new RegExp('[.:]', 'g');
5959
const date = new Date().toISOString().replace(clearFilter, '_');
60-
console.log('video_recording_' + date + '.' + photo.uri.split('.').pop());
6160
return {
6261
...photo,
6362
cancelled: false,
@@ -97,7 +96,7 @@ export const takePhoto = ImagePicker
9796
return {
9897
cancelled: false,
9998
mimeType: photo.mimeType,
100-
name: 'image_' + date + '.' + photo.uri.split('/').pop(),
99+
name: 'image_' + date + '.' + photo.uri.split('.').pop(),
101100
size: photo.fileSize,
102101
source: 'camera',
103102
type: photo.mimeType,

0 commit comments

Comments
 (0)