Manage custom form with an upload field on widget frontend
I want to create a particular component for my theme, the component is supposed to be a form to display on the front-end to logged in users only and will give the user the ability to upload zip/rar, pdf or images files plus a comment note. I know how to create a plugin from scratch and how to create a widget by using the wordpress API. I need someone who can point me on how to implement a custom form with an upload field on the widget front end and how this will be managed by wordpress when the user will submit the data (if I need to setup nonces and hidden input with the action).
Thanks for the help