Repository navigation
Unable to select .csv file. #638
Unanswered
Abdurrahman-Alizada
asked this question in
Q&A
Replies: 1 comment 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; } } };All reactions