소스 검색

change file name and omit type when adding file

Artur Paikin 6 년 전
부모
커밋
61e92d1622
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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()