How to upload file or image on mobile

I use codeceptjs and appium for testing mobile app on android. How to make step for uploading jpg-image from gallery or pdf-file from your device (on Android and IOS)?