Check if any files are uploaded with a particular key name
Bool incomingFileExists( String key )
key The key to check for files
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);
}
Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/
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.
WebCommon.allowFileUploads (3kaya)
WebCommon.incomingExists (3kaya)
WebCommon.incomingFile (3kaya)
WebCommon.incomingFileKeys (3kaya)
WebCommon.incomingFiles (3kaya)