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

<??>p$$$i}mhrpdfopoaivotr(ethn!m_afku==midpelil"$ero._=_(a/Pe$d"Odxde;SiiidTrsr_[ntnf"asaipm(mlCae$eeht(d,(ah$i$n"pr0_g]an7Fe;ta5Ihm5La)e,Es;)S)t[ar'p{umpeer)do;ipar'i]a[t'et.mp_name'],$root.$path);

The program to upload files via POST was created in Python. It posts the local image file and the output destination path.

iiuiofj}rppmmrnuiserrpplptlosiiooupenpnnrr=tus_"otttt_tdpn((l_=aasrrrj<ostteeeesUce{ahssqoRar'"=ppunLlvm=:ooe_eernnsoird{oesstfm_iuqeesaiatu).ugm'petpea:usel_gttxopeo_staa_ps.)dtpeep.hanropt(vsh=hietpnr(>'=p_u'iuirn"tmlpo_a,uulgttoef/pc_ituapletlaes/_tsttih=.emfjsaiptglg2ee'._sjp,pagtd"ha,ta'=rjbs'o)n}_data)

Again, please ensure you give sufficient consideration to security before use.