Déconnection octoprint sur under 3

Hello when I run an impression since octprint at the beginning everything is fine but after some printing stops if I use a Gcode file stored on my network hard drive and I have a message "connection break". If I put the Gcode file on the SD memory card and start printing from octoprint I also have a message "connection break" but the printer does not stop.
It's a shame because this Octoprint is no longer useful if I have to copy my Gcode file on the memory card every time, even if I know how to turn it on and off remotely.
Would you have a solution? Is it not possible to copy Gcode files to my network from octoprint and paste it to the remote Sd card?
Thanks for your help