Rechercher une page de manuel
WebCommon.incomingFileExists.3kaya
Langue: en
Version: March 2009 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
WebCommon::incomingFileExists - Check if any files are uploaded with a particular key nameSYNOPSIS
Bool incomingFileExists( String key )ARGUMENTS
key The key to check for files
DESCRIPTION
Returns true if any files have been uploaded with this key name. This is generally better than catching WebCommon.NotIncoming(3kaya) exceptions from WebCommon.incomingFile(3kaya)
if (incomingFileExists("picture")) {
pic = incomingFile("picture");
myUploadProcessor(pic);
}
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.RELATED
WebCommon.allowFileUploads(3kaya)
WebCommon.incomingExists(3kaya)
WebCommon.incomingFile(3kaya)
WebCommon.incomingFileKeys(3kaya)
WebCommon.incomingFiles(3kaya)
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre