Kaya 0.5.3 reference for WebCommon::incomingFileExists

List of functions and data types in WebCommon

Bool incomingFileExists(String key)

Arguments

Usage

Returns true if any files have been uploaded with this key name. This is generally better than catching NotIncoming exceptions from incomingFile.

if (incomingFileExists("picture")) {
    pic = incomingFile("picture");
    myUploadProcessor(pic);
}

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya