Check for instance of UploadIO

- This is required for objects which are not directly instances of File
  or Tempfile.