Unable to select .csv file. #638
              
                Unanswered
              
          
                  
                    
                      Abdurrahman-Alizada
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 1 reply
-
| I changed the mimeTypes of csv from text/csv to text/comma-separated-values.  and it worked. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Below is my function. I can select pdf, audio or video only but unable to select .csv only.
Although I can select .csv file when passed type is allFiles.
const uploadCSV = async () => { //Opening Document Picker for selection of one file try { const res = await DocumentPicker.pickMultiple({ type: DocumentPicker.types.csv }); console.log('res : ', res); setSingleFile(res); } catch (err) { if (DocumentPicker.isCancel(err)) { alert('Canceled from single doc picker'); } else { alert('Unknown Error: ' + JSON.stringify(err)); throw err; } } };Beta Was this translation helpful? Give feedback.
All reactions