Added function to get the piece size for sending files.