public function processUploadedFile($originalFile, $newFile, $folder)
    {
        if (substr($folder, -1) != '/') $folder = $folder . '/';
        @move_uploaded_file($originalFile, $folder . $newFile) or die("File: '{$originalFile}' couldn't be moved '{$folder}'.");
        @chmod($folder . $newFile, 0777) or die("Error with chmod() function on file: '{$newFile}' in folder '{$folder}'.");
    }