Get files directory

Is there an Omeka S function to get one of the following?

  • the path of a file in the “files/original” directory
  • the path of the “files/original” directory
  • the path to the omeka install ($site->url(); gets the child site, but I’m interested in the parent)

$media->render();
will display the file. But I’m not interested in the html, just the path.

$media->filename();
gets the filename, but not the path.

You want the local path or the URL?

I would like the URL please.

$media->originalUrl() should do it.

Yes! Perfect. Thank you.