Write File to Network Folder

I allow users to attach a file while filling a form and I want to save this file into a network directory.

How can I do that?

You can create a custom connector that can write to your file system.

You can consult this page on the documentation for more information :)  
https://documentation.bonitasoft.com/bonita/2022.1/process/connector-archetype