solution for network and upload file function