Browse Source

change file name and omit type when adding file

Artur Paikin 6 years ago
parent
commit
61e92d1622
1 changed files with 1 additions and 2 deletions
  1. 1 2
      examples/react-native-expo/react-native/file-picker/index.js

+ 1 - 2
examples/react-native-expo/react-native/file-picker/index.js

@@ -73,8 +73,7 @@ export default class UppyReactNativeFilePicker extends React.Component {
     selectDocument().then((file) => {
       this.uppy.addFile({
         source: 'React Native',
-        name: `media_${Date.now()}.jpg`,
-        type: file.type,
+        name: file.name,
         data: file
       })
       this.props.onRequestClose()