I would say that it depends on what services are available on your server.
If it allows FTP (or , better, SFTP) you can use that.
OkHttpUtils2 library let's use commands like POST to send bunches of bytes to a receiving service (which has to reassemble the inital file)
If the server has running a webserver with upload/download functions you may interact with those (webview and javascript injection)