See https://www.duet3d.com/forum/thread.php?id=889
Insert following code in "Additional terminal commands for post processing":
curl -F "file=@[output_filepath]" "http://duetwifi.home.alitecs.de/rr_upload?name=gcodes/[output_filename].gcode"
curl has to be installed!