SproutCMS

This is the code documentation for the SproutCMS project

function checkFilename()

Check a given filename is allowed to be uploaded - blocks PHP files etc

Usage

bool FileUpload::checkFilename ( string $filename );

Arguments

  1. string $filename

Return value

  • bool
    True if allowed, false if not