Automatic uploads from m-files

Hello

Is there a way to automatically download files from m-files to a folder on the server when a specific workflow state is reached?

(We use M-files Desktop)