private function cleanPostInputs()
    {
        $args = [
            'action'   => FILTER_SANITIZE_STRING,
            'password' => FILTER_SANITIZE_STRING,
            'from'     => FILTER_SANITIZE_STRING,
            'to'       => [
                'filter' => FILTER_SANITIZE_NUMBER_INT,
                'flags'  => FILTER_REQUIRE_ARRAY,
            ],
            'message'      => FILTER_UNSAFE_RAW,
            'image'        => FILTER_VALIDATE_URL,
            'audio'        => FILTER_VALIDATE_URL,
            'video'        => FILTER_VALIDATE_URL,
            'locationname' => FILTER_SANITIZE_STRING,
            'status'       => FILTER_SANITIZE_STRING,
            'userlat'      => FILTER_SANITIZE_STRING,
            'userlong'     => FILTER_SANITIZE_STRING,
        ];

        $myinputs = filter_input_array(INPUT_POST, $args);
        if (!$myinputs) {
            throw Exception('Problem Filtering the inputs');
        }

        return $myinputs;
    }