Access Multi-file uploader files from a plugin

Hey plugin builders,
I’m stuck with something which should be easy to do.

I’m trying to create a plugin to upload files to storage outside of Bubble. I got the Javascript working with HTML file input. I’m struggling to turn it into a plugin.
How can I access files that are selected by the user using Multi-file uploader from the plugin?
I tried adding Field to the element action and setting it up in the Workflow, but it’s throwing “Cannot read property…” error while running.
Any help would be greatly appreciated. Thank you.

Someone…

I think that way you can access the file in plugin.

How do I refer to it in the code?

Properties.fieldname?
I’m doing this way currently. But it’s throwing the above error.

Anyone…

Any help…