GetWebBlobVariable (open)

Return file from the query

Syntax

LOADLIB "mod::system/lib/webserver.whlib";

BLOB FUNCTION GetWebBlobVariable(STRING name)

Parameters

STRING name

Name of a variable passed through the URL or a POST request

Return value

BLOB

The uploaded file

Description

Interprets the web variable as a file, and returns it as a blob. This function must be used to deal with uploaded files and variables longer than 4096 bytes. Make sure your form tag has an 'enctype="multipart/form-data"' attribute to receive uploads