public static function find_file_by_url($url) {
        $url=Director::makeRelative($url);
        if($url) {
            $file=File::get()->filter('Filename', Convert::raw2sql($url))->first();
            if(!empty($file) && $file!==false && $file->ID>0) {
                return $file;
            }
        }
        
        return false;
    }