My file does not seem to get uploaded. Where must FILES reside, in the script or data folder?
The MvCall command on Mivascript.com does not provode an code example using the FILES parameter.
See http://www.mivascript.com/item/MvCALL.html
FILES: Optional, contains variables whose values are filenames that will be uploaded to the URL specified in ACTION. The specified METHOD must
be 'POST' or 'PUT'.
The MvCall command on Mivascript.com does not provode an code example using the FILES parameter.
See http://www.mivascript.com/item/MvCALL.html
FILES: Optional, contains variables whose values are filenames that will be uploaded to the URL specified in ACTION. The specified METHOD must
be 'POST' or 'PUT'.
Code:
<MvFUNCTION NAME="Post_Upload" PARAMETERS="url, fieldlist, filepath, response var"> <MIVA MvCALL_Error = "nonfatal, nodisplay"> <MvCAPTURE VARIABLE = "l.response"> <MvCALL ACTION = "{ l.url }" METHOD = "POST" FIELDS = "{ l.fieldlist }" FILES = "{ l.filepath }" > <MvASSIGN NAME = "l.http_response" VALUE = "{ s.callreturnheader[ 1 ] }"> <MvEVAL EXPR = "{ s.callvalue }"> </MvCALL> </MvCAPTURE> <MIVA MvCALL_Error = "fatal, display"> <MvFUNCTIONRETURN VALUE="{ l.http_response }"> </MvFUNCTION>
Comment