I'm trying to figure out how to figure out what file extension to put at the end of the file that i upload from react native to nodejs because I allow for picking PDFs and images. How do I do that?
I was gonna do pickedFile?. type === DocumentPicker.types.images but the value of the latter could be images/*
I'm trying to figure out how to figure out what file extension to put at the end of the file that i upload from react native to nodejs because I allow for picking PDFs and images. How do I do that?
I was gonna do
pickedFile?. type === DocumentPicker.types.images
but the value of the latter could beimages/*