Upload multiples files to an entry after its creation (and how to add a caption ?)

Can you show an example of multiple fileInfo objects with captions? I’m currently trying to do it and not having any luck