Attach files from recents

I am able to push a .png file and get it in recents but the same i m trying to push a pdf file and it doesnot appear in recents.
I want to push a file to recents and get the file after pushing

Can you share how you are able to push .png file to iOS and Android ?