How to upload non-pictures (e.g., a PDF) from iPhone?

Uploading pictures on an iPhone works by copy/pasting. I am not able to do the same with other file types, like a PDF.

On an iPad, anything works via drag and drop. The iPhone does not allow drag and drop from different apps.