Single file upload, where the file is uploaded when the form is submitted.
This shows how to facilitate uploading multiple files to the same field (e.g., an attachments field), where the files are uploaded as soon as they’re selected rather than when the form is submitted.