File uuid - remote host file access not supported

just like the title says,

i am trying to access a file with the new uuid, (while pages work fantastic)

   // Tried this:
            if($file = file('file://'.$download)){
                dump($file);
            }
  // Also this:
            if($file = site()->find('file://'.$download)){
                dump($file);
            }

Whoops error:

file(): Remote host file access not supported, file://uuid1234

kirby()->file($uuid)

1 Like

thanks, i am not sure what was wrong before, playing around with $kirby->file($uuid) seems to work