public static function createFromUri($uri)
    {
        $name = substr($uri, strrpos($uri, '/'));
        $path = sprintf('%s/%s', sys_get_temp_dir(), $name);
        copy($uri, $path);
        return static::createFromPath($path);
    }