add function that can make sure internet connection don't interrupt or cut off in the middle of downloading or uploading file.
because this thing always happen when download or upload big file, the connection will cut off suddenly than the file is broken so need to start from scratch again and this will waste our time.