Hi,
I'm testing the function get-binary-data with the example in the KB P113716, but I'm getting the next error:
Content-type: text/html nForm does not contain a field named filename or field is not of type 'file'. (12597)
This error appears in execution time not in compilation time, the code is:
Could anybody help me?
Thanks
I'm testing the function get-binary-data with the example in the KB P113716, but I'm getting the next error:
Content-type: text/html nForm does not contain a field named filename or field is not of type 'file'. (12597)
This error appears in execution time not in compilation time, the code is:
Code:
<HTML>
<head>
<title>Upload Page</title>
<script language="SpeedScript">
DEFINE VAR mFile AS MEMPTR NO-UNDO.
DEFINE VAR cfile AS CHAR NO-UNDO.
ASSIGN mFile = get-binary-data("filename").
IF mFile <> ? THEN DO:
ASSIGN cfile = get-value("filename").
COPY-LOB FROM mFile TO FILE cFile NO-CONVERT.
END.
</script>
</head>
<BODY>
<FORM ENCTYPE="multipart/form-data" ACTION="http://localhost/scripts/cgiip.exe/WService=wsTest/ping" METHOD="POST">
<INPUT type="file" name="filename">
<INPUT type="submit">
</FORM>
</BODY>
</HTML>
Thanks