in reply to Put file on webserver via HTTP

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... ]

Yet your array refrence points to an array with only one value, the $filename.


Evan Carroll
www.EvanCarroll.com

Replies are listed 'Best First'.
Re^2: Put file on webserver via HTTP
by Errto (Vicar) on Nov 01, 2005 at 14:27 UTC
    You need to look further down in the documentation, where it says
    The $filename is the filename to report in the request. If this value is undefined, then the basename of the $file will be used.
    so no, I don't think that's what the problem is. I would start by making sure that "/maintenance/instructions" is in fact a script that expects a file to be posted from a form, and also take a look at what output that script is producing when you call it in this way.