I had an opportunity to upload files to a server, so this is a memo of the process.
The image receiving program running on the server was created in PHP. Please be careful about security.
upload.php
The program to upload files via POST was created in Python. It posts the local image file and the output destination path.
Again, please ensure you give sufficient consideration to security before use.