uploadZipFile

open fun uploadZipFile(zipFile: File, fileName: String): Int

This method uploads a zip file to a server.

Return

Returns 1 if the upload is successful, 2 if the server is not online, and 0 if an error occurred during upload.

Parameters

zipFile

The file to be uploaded.

fileName

The name of the file to be uploaded.