UploadFile
A file tracked by the upload manager.
Upstream is a File extended with upload progress state. Kotlin external interfaces cannot extend a Kotlin/JS class, so the common File properties are repeated here; instances are still real File objects at runtime. The xhr property is only set while the file is being uploaded.