I am trying to upload the file in python and i want to upload the file in resumable mode i.e when the internet connection resume , the file upload resume from the previous stage.
Is there any specific protocol that supports resumable file upload.
Thanks in advance
Excellent answer by GuySoft -  it helped me a lot. I have had to slightly modify it as I never (so far) encountered the three exceptions his script is catching, but I experienced a lot of ConnectionResetError and socket.timeout errors on FTP uploads, so I added that. I also noticed that if I added a timeout of 60 seconds at ftp login, number of ConnectionResetErrors dropped significantly (but not all together). It was often happening that upload often got stuck at 100 % at the ftp.storbinary until socket.timeout, then tried 49 times and quit. I fixed that by comparing totalSize and rest_pos and exited when equal.
So I have working solution now, bu I will try to figure out what is causing the socket timeouts.
Interesting thing is that when I used Filezilla and even a PHP script, the file uploads to same FTP server were working without glitch.
Resumable file upload in python