question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Here is the response. Is the file itself problem or the module?

data: "LONG_STRING"
fileName: "IMG_1576 (1).png"
fileSize: 1073263
height: 1136
isVertical: true
originalRotation: 0
path: "/storage/emulated/0/Download/IMG_1576 (1).png"
type: null
uri: "content://media/external/images/media/36"
width: 640

Version “react”: “16.0.0-alpha.6”, “react-native”: “0.43.2”, “react-native-image-picker”: “^0.26.2”,

Devices Windows 7 64bits Android emulator 7.1.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:10

github_iconTop GitHub Comments

5reactions
omererbilcommented, Sep 29, 2019

i have resolved this issue by

  ImagePicker.launchImageLibrary(options, (response) => {

    if (response.didCancel) {
    } else if (response.error) {
    } else if (response.customButton) {
    } else {
      if(response.type==null){
        response.type='image/jpeg'
        response.fileName='image'

      }
      }
  });
}
2reactions
alecbennettcommented, Jan 29, 2018

This looks like it is related to #744 and is likely due to the space in the file name. In the short term, until a fix is available, I added a ‘null’ check (in my code that uses image-picker) and use react-native-file-type to do a quick check on ‘response.path’, which correctly returns the file type/ext.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NULL File Extension - What is a .null file and how do I open it?
A file with a .null extension is a file that has been encrypted by the Null virus, which is a variant of Stop...
Read more >
NULL File - What is it and how do I open it?
The .null file extension is used by some third party Windows programs for a corrupted data file format. When a program generates a...
Read more >
NULL File Extension - What is it and how to open NULL format
null" represents a hidden file name, rather than an extension. Along with several other filenames, such as .jupdate, .rserv, and others, it is...
Read more >
How to open NULL file extension on Windows, Android or online
In simple terms, a NULL file is a type of file that does not contain any data. NULL files are often used for...
Read more >
Open .NULL File (NULL image) - File Extension
A file with an extension of .NULL is known as a NULL image. These .NULL files can be opened on Windows and Apple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found