By using multipart.write, we can write files into the cache and send them to the server through the POST method.