webCOMAND

#GETFILE

Return the uploaded file contents for an HTML form input.  #GET will return the filename.

This statement is only useful in a Dynamic Publication Procedure.

Prototype

#GETFILE(string $key)

Parameters

  • key - HTML form file input name.

Example

#NEW($Filename)#GET('resume')#ENDNEW
#NEW($File)#GETFILE('resume')#ENDNEW
<form enctype="multipart/form-data" method="POST">
    Resume: <input type="file" name="resume" />
    <input type="submit" value="Upload" />
</form>
#IF($Filename && #SIZE($File)>0)
Resume: $Filename - #SIZE($File) bytes
#ENDNEW

Related

#GET, #GETCOOKIE, #HEADER