I don't think your posting the file, I think your posting the content of $fname as postvariable 'upfile'.
Look at the example in docs:
The POST method also supports the multipart/form-data content used for Form-based File Upload as specified in RFC 1867. You trigger this content format by specifying a content type of 'form-data'. If one of the values in the $form_ref is an array reference, then it is treated as a file part specification with the following values:
[ $file, $filename, Header => Value... ]
In reply to Re: Put file on webserver via HTTP
by EvanCarroll
in thread Put file on webserver via HTTP
by PugSA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |